offlinemot.fix_view.FixView.fix_view
- FixView.fix_view(frame, fgmask=None)[source]
Process the frame by detecting the 2D affine motion, and transform it if it is found with enough number of matches points
- Parameters
frame (numpy array) – The frame that should be transformed to the fixed postion
fgmask (numpy array, optional) – The mask defining where to detect the frame keypoints and descriptors to match with
- Returns
The transformed frame if the conditions apply.
- Return type
numpy array