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:
initial_matcher (
Optional
[LocalFeature
], optional) – image matching module, e.g.LocalFeatureMatcher
orLoFTR
. Default:GFTTAffNetHardNet
.fast_matcher (
Optional
[Module
], optional) – fast image matching module, e.g.LocalFeatureMatcher
orLoFTR
. Default:DescriptorMatcher
.ransac (
Optional
[Module
], optional) – homography estimation module. Default:RANSAC
.minimum_inliers_num (
int
, optional) – threshold for number inliers for matching to be successful. Default:30
- 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.