简体   繁体   中英

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:

在此处输入图片说明

and here is the image with SURF keypoints:

在此处输入图片说明

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM