Ask Your Question
0

Object detection in scene

asked 2013-05-12 00:06:21 -0600

andrewcarter gravatar image

I follow the tutorial on http://docs.opencv.org/doc/tutorials/features2d/feature_homography/feature_homography.html#feature-homography and got it working perfectly. I'm able to detect images and draw the border around the detected image. I'm having trouble figuring out how to simply know "The image was found" or "The image was not found". Out of all the points and variables calculated during this process, I don't see which one I can use to determine "Yes the image was found". What am I missing? Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-12 07:49:07 -0600

Weblucas gravatar image

There are few options to do this. The easier way is fix a percentage of keypoints_object. Test some values. if(good_matches.size() > 0.65*keypoints_object.size()) found else not found

A better way is evaluate the reprojection error and define a fixed minimum amount of matches with low reprojection error.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-12 00:06:21 -0600

Seen: 227 times

Last updated: May 12 '13