error Traceback (most recent call last)
in
2 # Create SURF object. You can specify params here or later.
3 # Here I set Hessian Threshold to 400
----> 4 surf = cv.xfeatures2d.SURF_create(400)
5 # Find keypoints and descriptors directly
6 kp, des = surf.detectAndCompute(img,None)
error: OpenCV(4.6.0) /io/opencv_contrib/modules/xfeatures2d/src/surf.cpp:1027: 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'
Need to add opencv-contrib to colab
surf = cv.xfeatures2d.SURF_create(400)
error Traceback (most recent call last) in
2 # Create SURF object. You can specify params here or later.
3 # Here I set Hessian Threshold to 400
----> 4 surf = cv.xfeatures2d.SURF_create(400)
5 # Find keypoints and descriptors directly
6 kp, des = surf.detectAndCompute(img,None)
error: OpenCV(4.6.0) /io/opencv_contrib/modules/xfeatures2d/src/surf.cpp:1027: 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'