Multiple Objects Features2D
Hello,
I am doing the basic object detection using features2d as outlined in the tutorial.
How can this be extended to multiple objects? Since the detection of features will occur in the input image that may have duplicate features, then how do we find two distinct objects? The problem is that with a BruteForce matcher, there is no guarantee that the features will align correctly.
Scenario.
Image contains two objects. Feature detector finds keypoints Descriptors are extracted.
We now want to match the descriptors to the template image. The descriptors contain two sets of object features.
I feel like the centroid of the object is important here, and that something like the CMT tracker would be a good way to go.
Any tips?
If you mean this tutorial and if you want to detect multiple occurences of the same object in an image using features2d.
In the paper Distinctive Image Features from Scale-Invariant Keypoints, Lowe also proposed to use the Hough transform and solving for the affine transformation parameters to detect multiple matches of the same object.