ORB:一种有效的SIFT或者SURF描述符取代。
ORB 比SURF或者SIFT快,并且比SUFT效果好,它是在低运算能力设备上的一种好的选择。例子
import numpy as npimport cv2from matplotlib import pyplot as pltimg = cv2.imread('simple.jpg',0)# Initiate STAR detectororb = cv2.ORB()# find the keypoints with ORBkp = orb.detect(img,None)# compute the descriptors with ORBkp, des = orb.compute(img, kp)# draw only keypoints location,not size and orientationimg2 = cv2.drawKeypoints(img,kp,color=(0,255,0), flags=0)plt.imshow(img2),plt.show()
效果图: