img.copy_image() img.acquire() cv2.namedWindow('Invariant', cv2.WINDOW_NORMAL) cv2.imshow('Invariant', img.invariant_image) cv2.waitKey(0) cv2.destroyAllWindows() h = img.new_image.shape[0] w = img.new_image.shape[1] n = 2 # Number of roi's size = np.array([[w / n], [h / n]], np.int32) start = np.array([[0], [0]], np.int32) # Create roi roi = img.crop_image(start, size, img.new_image) roi_prev = img.crop_image(start, size, img.prev_image) match.match(roi, roi_prev) print "good_matches bf", type(match.good_matches) match.draw_matches(roi, match.good_matches) cv2.namedWindow('roi', cv2.WINDOW_NORMAL) cv2.imshow('roi', roi) cv2.waitKey(0) cv2.destroyAllWindows()