Features are extracted, matched, and tracked by the
FeatureMatching class, especially by its public
match method. However, before we can begin analyzing the incoming video stream, we have some homework to do. It might not be clear right away what some of these things mean (especially for SURF and FLANN), but we will discuss these steps in detail in the following sections. For now, we only have to worry about initialization:
class FeatureMatching: def __init__(self, train_image='salinger.jpg'):
self.min_hessian = 400 self.SURF = cv2.SURF(self.min_hessian)
self.img_obj), or print ...