Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

your code is from outdated opencv2.4, you can't use the part with the feature description / matching, api has changed.

please look at current tutorials for this.

then, you can only use SIFT or SURF if your cv2 was build with the opencv_contrib modules (xfeatures2d) and IF OPENCV_ENABLE_NONFREE=ON while building. (and no, it's OFF in the PIP version)