Ask Your Question
0

Find a contour of some known object

asked 2013-07-28 16:15:29 -0600

gektor gravatar image

Assuming a picture has got some known object, how to find its contour? For example, let's say there is a photo of a cat. How to find the cat's face contour? I tried cv::findContours - it detects many irrelevant contour paths and I have no idea how to get rid of them.

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-28 17:21:19 -0600

You don't want to find contours (at least not in the first stage), you want to detect an object. Therefore, you need to train a classifier for all object you want to recognize, with multiple images of them. See the Cascade classification page and Cascade Classification Training page to start. You could also try 2D features, like SIFT/SURF/ORB/... with Bag of Words approach and SVM, Random Tree, etc.

There is many papers on the web, an lot of answers on this forum for all these topics.

edit flag offensive delete link more

Comments

Thanks for your answer. Is there a good "playable" example that demonstrates how to use opencv_createsamples and opencv_traincascade?

gektor gravatar imagegektor ( 2013-08-11 00:13:54 -0600 )edit

Question Tools

Stats

Asked: 2013-07-28 16:15:29 -0600

Seen: 258 times

Last updated: Jul 28 '13