1

I am executing statement sift = cv2.xfeatures2d.SIFT_create(). It is working fine with OpenCV 3.4 but I want to execute it with the OpenCV version 4.1.

I am getting the following error:

Message=OpenCV(4.1.1) D:\Build\OpenCV\opencv_contrib-4.1.1\modules\xfeatures2d\src\sift.cpp:1207: error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'cv:

1
  • 2
    And which part of the error message don't you understand? Commented Sep 27, 2019 at 10:10

1 Answer 1

3

As SIFT is patented in the USA to enable it in OpenCV you have to compile OpenCV from source with contrib modules and explicity set the flag OPENCV_ENABLE_NONFREE while configuring your project in CMake.

See this question for more information.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.