特征描述(ORB)

ORB:一种有效的SIFT或者SURF描述符取代。
ORB 比SURF或者SIFT快,并且比SUFT效果好,它是在低运算能力设备上的一种好的选择。

例子

import numpy as np
import cv2
from matplotlib import pyplot as plt

img = cv2.imread('simple.jpg',0)

# Initiate STAR detector
orb = cv2.ORB()

# find the keypoints with ORB
kp = orb.detect(img,None)

# compute the descriptors with ORB
kp, des = orb.compute(img, kp)

# draw only keypoints location,not size and orientation
img2 = cv2.drawKeypoints(img,kp,color=(0,255,0), flags=0)
plt.imshow(img2),plt.show()

效果图:

posted @ 2017-11-17 16:48  jinzhongxiao  阅读(701)  评论(0编辑  收藏  举报