Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is feature detection still possible in OpenCV?

Hello guys! Thank you for reading my question.

I use VS Code to write my scripts in Python 3.

My objective is to match two images. One image is isolated (needle) and another one is within a bigger image (haystack). The needle image is not an exact match to the one in the haystack image, but they are similar. The image in the haystack may be smaller, different color or rotated, but they have a similar shape. A good example would be the image found in one of the tutorials:

https://docs.opencv.org/master/Feature_FlannMatcher_Result_ratio_test.jpg

After trying out the tutorials, I learned that a module called features2D is needed in all of the algorythms (SIFT, SURF, AKAZE, ORB). However, this module seems to be disabled. I have tried to install it for days with no success. I think it has something to do with SIFT being patented.

Can anyone point me in the right direction?:

Is it possible to install this module in VS Code? Are there other alternatives?

Thanks you for your time.

Is feature detection still possible in OpenCV?

Hello guys! Thank you for reading my question.

I use VS Code to write my scripts in Python 3.

My objective is to match two images. One image is isolated (needle) and another one is within a bigger image (haystack). The needle image is not an exact match to the one in the haystack image, but they are similar. The image in the haystack may be smaller, different color or rotated, but they have a similar shape. A good example would be the image found in one of the tutorials:

https://docs.opencv.org/master/Feature_FlannMatcher_Result_ratio_test.jpg

After trying out the tutorials, I learned that a module called features2D is needed in all of the algorythms (SIFT, SURF, AKAZE, ORB). However, this module seems to be disabled. I have tried to install it for days with no success. I think it has something to do with SIFT being patented.

Can anyone point me in the right direction?:

Is it possible to install this module in VS Code? Are there other alternatives?

Thanks you for your time.

Is feature detection still possible in OpenCV?How to solve this?

Hello guys! Edited, Thank you for reading bearing with me.

Ok! I will approach my question.question in a different manner this time:

Using

  1. Python 3.8.3 64-bit
  2. opencv-python 4.3.0.36
  3. VS Code

So I have this image:

image description

How would you match the paint palette on the top (green box) with the one within the image (red box)?

matchtemplate does not work since there is rotation and different image size.

I use VS Code am a beginner and I am trying to write my scripts in Python 3.

My objective is to match two images. One image is isolated (needle) and another one is within a bigger image (haystack). The needle image is not an exact match to the one in the haystack image, but they are similar. The image in the haystack may be smaller, different color or rotated, but they have a similar shape. A good example would be the image found in one of the tutorials:

https://docs.opencv.org/master/Feature_FlannMatcher_Result_ratio_test.jpg

After trying out the tutorials, learn through projects I learned that a module called features2D is needed in all of the algorythms (SIFT, SURF, AKAZE, ORB). However, this module seems to be disabled. make up myself. I have tried been trying to install it figure this out for days quite a while with no success. success, I think it has something to do with SIFT being patented.

Can anyone point me in the right direction?:

Is it possible to install this module in VS Code? Are there other alternatives?

Thanks hope you for your time.guys can help me. Thanks!

How to solve this?

Edited, Thank you for bearing with me.

Ok! I will approach my question in a different manner this time:

Using

  1. Python 3.8.3 64-bit
  2. opencv-python 4.3.0.36
  3. VS Code

So I have this image:

image description

How would you match the paint palette on the top (green box) with the one within the image (red box)?

matchtemplate does not work since there is rotation and different image size.

I am a beginner and I am trying to learn through projects I make up myself. I have been trying to figure this out for quite a while with no success, I hope you guys can help me. Thanks!