Ask Your Question
0

Using machine learning with contours?

asked 2014-03-11 13:29:37 -0600

mrj1m0thy gravatar image

updated 2014-03-11 13:31:53 -0600

berak gravatar image

I'm working on a program that uses the cvFindContours function and i'm looking to implement machine learning for the contour detection. Can this be done? From what i understand training data has to be passed in to the train function as a vector or number. How would i convert the contour data into a vector or number?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

don't use the contours, but moments/Humoments derived from them

berak gravatar imageberak ( 2014-03-12 02:57:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-03-12 05:33:46 -0600

You shouldn't use contours to teach a machine learning engine, but you should use its properties. From a contour you can directly derive properties such as centroid, area, bounding rectangle, minimum enclosing rectangle and perimeter. Furthermore, you can compute extra contour properties, such as solidity, form factor, euler number and many others. So, what you want is to store this kind o features that describe the contour in a feature vector, rather than using the contour itself

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-11 13:29:37 -0600

Seen: 789 times

Last updated: Mar 12 '14