<<Prev 1 2 3 4 5 6 7 Next>>
Shape Matching
To recognize which digit is which, we have to compare the resulting objects with a known database of objects.
This known database is simply a folder that contains images of each of the separate shapes to be recognized. The folder
we used contains the following images:
This database of images was generated by cutting the final image generated up to this point and manually
separating each digit into its own file. This was done by pressing CTRL-C inside RoboRealm when the appropriate
image was seen and pasting the image (CTRL-V) into our favorite paint program to then crop and save each
image into its own file. Note that the image filenames were specified as 0.gif, 1.gif, 2.gif, etc. in order
to make the image to numeric translation easy.
This database was then trained by the Shape Matching module which
matches each resulting object to a single file in the database. The confidence and size filters within the
Shape_Match module were then used to trim out any bad matches such as those against the remaining triangles.
Note that the digits displayed at the top of each green box is actually the filename of the image matched. Since
we named the database images with the digit they represent it is easy to translate the image name into the
actual number. In order to do the final grouping we need to use a little VBScript to combine the
separate objects together to create the final number.
<<Prev 1 2 3 4 5 6 7 Next>>
|