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::xfeatures2d::SIFT::create' 해결방법

CODEDRAGON Development/Python

반응형

 

 

 

에러 메시지

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::xfeatures2d::SIFT::create'

sift = cv2.xfeatures2d.SIFT_create()
cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv_contrib\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::xfeatures2d::SIFT::create'
 

 

 

 

  

해결방법

패키지 설치 버전 확인

C:\CodeLab>pip list | findstr opencv
opencv-contrib-python 4.1.1.26
opencv-python         4.1.1.26
 
C:\CodeLab>

 

 

 

 

opencv 하위 버전으로 변경하기

opencv 3.4.2.16 이상에서 SIRF SURF 이상 지원하지 않습니다.

It seems that SIRF and SURF are no longer available in opencv > 3.4.2.16.

 

4.1.1.26 -> 3.4.2.16 으로 변경해야 합니다.

 

https://codedragon.tistory.com/9563

 

opencv 하위 버전으로 변경하기

opencv 하위 버전으로 변경하기 ·      , 의 기존 설치 버전 삭제 후 하위 버전으로 설치합니다. ·      4.1.1.26 -> 3.4.2.16 으로 변경합니다.   패키지 설치 버전 확인 C:\CodeLab>pip list | fin..

codedragon.tistory.com

 

 

 

 

반응형

'Development > Python' 카테고리의 다른 글

scrapy 특징  (0) 2019.12.04
변수 삭제  (0) 2019.12.01
함수의 기본형식  (0) 2019.11.29
반복문  (0) 2019.11.29
조건문  (0) 2019.11.29