I used to run SURF and SIFT on Colab using OpenCV 3.4.2.17. However, I can not use this version of opencv any more. Is there any other way to run SURF on Colab? I can SIFT pantent has expired since 2020. Below is the error
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'
I have tried to downgrade Opencv version to 4.2.0, 3.4.8.29, 3.4.2.17 and 4.4.0.46. I also tried to downgrade paython to version 3.6 to work with old version opencv library.