kornia.tracking#

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

Module, which performs 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)#

The frame x is matched with initial_matcher and verified with ransac.

Return type:

Tuple[Tensor, bool]

track_next_frame(x)#

The frame x is prewarped according to the previous frame homography, matched with fast_matcher verified with ransac.

Return type:

Tuple[Tensor, bool]