We will implement our application in a class named ImageTrackingDemo, which will have the following methods:
- __init__(self, capture, diagonal_fov_degrees, target_fps, reference_image_path, reference_image_real_height): The initializer will set up a capture device, a camera matrix, a Kalman filter, and 2D and 3D keypoints for the reference image.
- run(self): This method will run the application's main loop, which captures, processes, and displays frames until the user quits by hitting the Esc key. The processing of each frame is performed with the help of other methods, which are mentioned next in this list.
- _track_object(self): This method will perform 6DOF tracking and draw an AR visualization of the tracking ...