Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to detect known objects in OpenCV?

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

like image 412
doree007 Avatar asked Nov 04 '22 16:11

doree007


1 Answers

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

  • Ellipse detection with OpenCV

  • Square detection doesn't find squares

like image 110
karlphillip Avatar answered Nov 16 '22 18:11

karlphillip