detective find particular shapes on an image

asked 2017-04-26 06:06:35 -0500

BettiAn gravatar image

Hello to everybody. My aim would be to find special shapes on an image. For example I have an image that depicts a series of all attached hexagons, but above two hexagons, there is an object above.

The question is: Can I find the object on the image through the functions under OPEN CV ?

Thank you so much Andrea

edit retag flag offensive close merge delete


Instead of describing it, can you actually add an image? I added enough karma for you to do so!

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-26 07:12:30 -0500 )edit

You can use (matchShapes()) function, so firstly just take a test image which only contains the shape that you would like to detect, then find the contours of that shape and then simply read in the second image where you would like to detect the shape in and find all the contours in that image and use the matchShapes() function and pass all the contours of that image and the contour of the shape alone as parameters to the function

JackGold1 gravatar imageJackGold1 ( 2017-04-26 08:10:07 -0500 )edit