March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the steps:
import cv2import numpy as npimg = cv2.imread('../data/scenetext01.jpg', cv2.IMREAD_COLOR)
surf = cv2.xfeatures2d.SURF_create(10000)surf.setExtended(True)surf.setNOctaves(3)surf.setNOctaveLayers(10)surf.setUpright(False)keyPoints, descriptors = surf.detectAndCompute(img, None)show_img = cv2.drawKeypoints(img, keyPoints, None, (255, 0, 0), cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)cv2.imshow('SURF descriptors', show_img)cv2.waitKey()cv2.destroyAllWindows()
Read now
Unlock full access