match.sum_coord(start[0], start[1]) print type(match.good_kp1) print type(match.good_kp1[0]) start = np.array([[w / n], [0]]) roi = img.crop_image(start, size, img.new_image) roi_prev = img.crop_image(start, size, img.prev_image) # save matches match.append_matches() match.append_keypoints1() match.append_keypoints2() match.match(roi, roi_prev) match.draw_matches(roi, match.good_matches) cv2.namedWindow('roi', cv2.WINDOW_NORMAL) cv2.imshow('roi', roi) cv2.waitKey(0) cv2.destroyAllWindows() # Third ROI: match.sum_coord(start[0], start[1])