Ask Your Question
0

Object detection in scene

asked May 12 '13

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!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered May 12 '13

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.

Preview: (hide)

Question Tools

Stats

Asked: May 12 '13

Seen: 238 times

Last updated: May 12 '13