-
Shape recognition
Hello all. I am looking for a way to have my program be able to distinguish between various black and white shapes (eg. triangle/circle/square). I am completely clueless about where to start. it does not matter what type of file it reads it from (eg. bitmap, jpeg, gif, etc.). Does anyone have any ideas on where to start?
-
Can you be more specific?
-
k
the program is given 3 bitmap files. all have a white background, and in the center, in black, one has a square, another has a circle, and the third has a triangle. When i press the button, i want the program to tell me which bmp (a, b, or c) is a square.
-
If you know the x,y, width,height of the shape on the bitmap then you just draw the same kind of shape on another place or picture box, and then read the bitmap and the picture box pixel by pixel, and see if they both are same. If that is the case then you have the kind of shape that you have in the picture box.