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..

1
  • 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.. Commented Sep 16, 2012 at 16:05

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

4 Comments

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.
There are different techniques to accomplish this, you might to take a look at match template, flann, sift and others. The OpenCV tutorials offer examples and a decent explanation of these methods. Also, Stackoverflow has a nice database of questions similar to yours.
@ Karlphillip Thanks for your reply. Your ideas are really helpful for me. Again Thanks lot.
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.