You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while running the testing file (Feature Descriptor section), I am facing this error. Used multiple ways to resolve the issue but couldn't succeed. Please guide me in this. Thanks
OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv_contrib\modules\xfeatures2d\src\surf.cpp:1029: 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::SURF::create'
The text was updated successfully, but these errors were encountered:
Hi, the error occurs because the SURF algorithm is patented, and it is not included in the default build of OpenCV. To resolve this issue, you need to enable the nonfree modules in OpenCV by rebuilding the library. Here’s how you can do it:
Install Required Tools: Install CMake, Python, and a C++ compiler (e.g., Visual Studio on Windows or GCC on Linux).
Configure OpenCV Build with CMake:
Run CMake and set the OPENCV_ENABLE_NONFREE option to ON.
Include the opencv_contrib modules by specifying the path to the opencv_contrib/modules folder in the OPENCV_EXTRA_MODULES_PATH variable.
4.Build OpenCV: Run the build command (make on Linux or use the Visual Studio project files generated by CMake on Windows). Install the rebuilt library.
Update Your Environment: Update your Python environment or project to use the newly built OpenCV library.
while running the testing file (Feature Descriptor section), I am facing this error. Used multiple ways to resolve the issue but couldn't succeed. Please guide me in this. Thanks
OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv_contrib\modules\xfeatures2d\src\surf.cpp:1029: 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::SURF::create'
The text was updated successfully, but these errors were encountered: