2019/09/04 Python2.7.8, OpenCV4.1.1 # -*- coding: utf-8 -*- import numpy as np import cv2 MIN_MATCH_COUNT = 4 img1 = cv2.imread('box.png', 0) # queryImage img2 = cv2.imread('box_in_scene.png', 0) # trainImage img2c = cv2.imread('box_in_scene.png') detector = cv2.AKAZE_create() kp1, des1 = detector.detectAndCompute(img1, None) kp2, des2 = detector.detectAndCompute(img2, None) bf = cv2.BFMatcher() m