kornia.tracking

class kornia.tracking.HomographyTracker(initial_matcher=None, fast_matcher=None, ransac=None, minimum_inliers_num=30)

Perform local-feature-based tracking of the target planar object in the sequence of the frames.

Parameters:
forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses. :rtype: Tuple[Tensor, bool]

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

match_initial(x)

Match the frame x with initial_matcher and verified with ransac.

Return type:

Tuple[Tensor, bool]

track_next_frame(x)

Prewarp the frame x according to the previous frame homography.

Matched with fast_matcher verified with ransac.

Return type:

Tuple[Tensor, bool]