how to detect known objects in OpenCV?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 02:29:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!