Multiple Objects Features2D

asked 2015-05-22 18:05:14 -0500

WebSight gravatar image


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.


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?

edit retag flag offensive close merge delete



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.

Eduardo gravatar imageEduardo ( 2015-05-23 08:21:50 -0500 )edit