March 2019
Intermediate to advanced
642 pages
22h 54m
English
Let's see how we can build a Star feature detector:
import sys import cv2
class StarFeatureDetector(object):
def __init__(self):
self.detector = cv2.xfeatures2d.StarDetector_create()
def detect(self, img):
return self.detector.detect(img)
if __name__=='__main__':
# Load input image -- 'table.jpg'
input_file = sys.argv[1]
input_img = cv2.imread(input_file)
Read now
Unlock full access