5

I am try to draw shapes in the window in real time. The shapes are like tangle ,rectangle ,circle , half or circle and "Z" in the screen using yellow color. The size and the shape may not be same to the original image. But Program know all the original shapes. Because they are predefined. I want to know how i can identify the correct shape. as an example,

enter image description here

is there possible way to do this? can I use template matching for this? Please help me with this..

doree007
  • 89
  • 2
  • 12
  • ya you can do template matching ..or you can try to fit rectangles or ellipses to your drawn shape...after fitting check what it closely resembles and then decide on the shape.. – rotating_image Sep 16 '12 at 16:05

1 Answers1

2

You can use different methods to detect each shape. Check these:

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426
  • Thanks for the reply. It really helpful for me. But how i can identify shapes like "Z". I try to develop this application for disabled users. So I want to detect different shapes. – doree007 Sep 17 '12 at 06:17
  • There are different techniques to accomplish this, you might to take a look at match template, flann, sift and others. The [OpenCV tutorials](http://docs.opencv.org/doc/tutorials/tutorials.html) offer examples and a decent explanation of these methods. Also, Stackoverflow has a nice database of questions similar to yours. – karlphillip Sep 17 '12 at 16:19
  • @ Karlphillip Thanks for your reply. Your ideas are really helpful for me. Again Thanks lot. – doree007 Sep 18 '12 at 05:16
  • You are free to ask new questions in new threads, but we have this rule, so let's keep 1 question per thread. Your new question involves Artificial Intelligence, so I will suggest you really ask it on a new thread so the AI experts can answer you. Good luck. – karlphillip Sep 22 '12 at 03:29