import numpy as np import cv2 import matplotlib.pyplot as plt # 读取图片 img = cv2.imread('source/data_01.png') orb = cv2.ORB_create() keypoints, descriptors = orb.detectAndCompute(img, None) output_image = cv2.drawKeypoints(img, keypoints, None, color=(0, 255, 0), flags=0) cv2.imshow('Feature KeyPoints', output_image) cv2.waitKey(0) cv2.destroyWindow()