Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separating similar object in an image - opencv python

I am trying to detect the objects in an image which look similar to the reference image. Here is how i'm trying to accomplish it:

Here is the sample Image:

enter image description here

and here is the image with SURF keypoints:

enter image description here

The rectangle is drawn based on Clustering method like "Hierarchial Clustering".

The main problem is, in this case it doesnt detect the objects individually, it detects everything as one object.

Is there a way to seperate these keypoints, so as to detect each vehicle seperately? Is this a good way to detect objects or if there is a better way please suggest.

like image 813
md1hunox Avatar asked Jan 26 '13 05:01

md1hunox


1 Answers

SURF keypoints are useful in detecting similar images, or images taken of the same place from different perspectives. Although you can use Haar classifiers for the purpose of object detection. It is also a part of OpenCV library.

Here is another great tutorial regarding object detection using OpenCV.

like image 105
stack programmer Avatar answered Sep 22 '22 07:09

stack programmer