pyorc.Video.set_mask_from_exterior#

Video.set_mask_from_exterior(exterior: List[List])[source]#

Prepare a mask grid with 255 outside of the stabilization polygon and 0 inside.

Parameters:

exterior (list of lists) – coordinates defining the polygon for masking

Returns:

self.mask – mask for stabilization region

Return type:

np.ndarray