1 | initial version |
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.