February 2020
Intermediate to advanced
372 pages
9h 26m
English
The _track_object method is directly responsible for keypoint matching, keypoint visualizations, and solving the PnP problem. Additionally, it calls other methods to deal with Kalman filtering, AR drawing, and masking the tracked object:
def _track_object(self): self._gray_image = convert_to_gray( self._bgr_image, self._gray_image)
if self._mask is None: self._mask = numpy.full_like(self._gray_image, 255) keypoints, descriptors = \ self._feature_detector.detectAndCompute( self._gray_image, ...