OpenCV doesn't come with “external” libraries
问题 I tried this example from the OpenCV website: import numpy as np import cv2 from matplotlib import pyplot as plt # changed the image names from box* since the sample images were not given on the site img1 = cv2.imread('burger.jpg',0) # queryImage img2 = cv2.imread('burger.jpg',0) # trainImage # Initiate SIFT detector sift = cv2.SIFT() # find the keypoints and descriptors with SIFT kp1, des1 = sift.detectAndCompute(img1,None) kp2, des2 = sift.detectAndCompute(img2,None) # FLANN parameters