问题
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,
is there possible way to do this? can I use template matching for this? Please help me with this..
回答1:
You can use different methods to detect each shape. Check these:
Ellipse detection with OpenCV
Square detection doesn't find squares
来源:https://stackoverflow.com/questions/12445366/how-to-detect-known-objects-in-opencv