opencv-Fast角点检测算法

版权声明:belongs to tony2278 https://blog.csdn.net/tony2278/article/details/89889715
SURF:

import cv2
 
img = cv2.imread('cat.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
 
surf = cv2.xfeatures2d.SURF_create()
kp = surf.detect(gray, None)
 
img = cv2.drawKeypoints(gray, kp, img)
 
cv2.imshow("img", img)
 
k = cv2.waitKey(0)
if k & 0xff == 27:
    cv2.destroyAllWindows()

pip install opencv-python==3.4.2.16
pip install opencv-contrib-python==3.4.2.16
 

猜你喜欢

转载自blog.csdn.net/tony2278/article/details/89889715