Ask Your Question
0

Shape identification C++

asked 2016-12-22 23:01:24 -0600

Xn gravatar image

updated 2016-12-23 01:53:41 -0600

berak gravatar image

Hi, Im relatively new to opencv and would like to ask if anyone knows of an approach to solve the following question.

My main objective is to identify the 2d shapes of an object. They are all geometric shapes that vary in size. I had tried using hough circle, corner detection and approxpolydp to identify the shape but was not able to obtain a good result for complicated shapes such as the ones below.

Modified rectangle: C:\fakepath\shape_9.png Heart: C:\fakepath\shape_14.png Bone: C:\fakepath\shape_15.png

Any pointer will be much appreciate. :)

edit retag flag offensive close merge delete

Comments

They are all geometric shapes that vary in size.

does that also mean, you get e.g. "hearts" in different sizes ? (or is that at least constant ?)

berak gravatar imageberak ( 2016-12-23 09:10:59 -0600 )edit

Yes the shape could be bigger or smaller and also "sharper" or "fatter". In the case of the heart shape, imaging a rounder heart or a thinner heart.

Xn gravatar imageXn ( 2016-12-24 09:13:37 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-23 02:12:47 -0600

Hi!

OpenCV has shape comparison module. This may a good starting point for you! Feel free to ask any questions if you have any!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-22 23:01:24 -0600

Seen: 1,363 times

Last updated: Dec 23 '16