I have installed opencv and opencv_contrib in a conda environment using pip. Though I am getting this error :
cv2.error: OpenCV(4.1.0) /io/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 'create'
How to solve this? Do I need to download and build opencv from the github? If yes, then how?