Results 1 to 4 of 4

Thread: Shape recognition

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    damn. i knew this yesterday......
    Posts
    5

    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?
    "A mathematician is a device for turning coffee into theorems."

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Can you be more specific?
    Baaaaaaaaah

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    damn. i knew this yesterday......
    Posts
    5

    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.
    "A mathematician is a device for turning coffee into theorems."

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    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.
    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width