1 | initial version |
In principle the feature matchers in OpenCV look,using ransac, at the largest bundle of matches that can be grouped. Thus this means that basically you can only match one object at ones. What they do is remove those matched keypoints in the scene and then do the feature matching again, hopefully finding the second identical object. Ofcourse you need to start from a large set of features. The number of returned features is not fixed, but by default limited to 500, but can be changed.