scale_video

seas.video.scale_video(array: numpy.ndarray, s_factor: int = 1, t_factor: int = 1, verbose: bool = True, remainder: numpy.ndarray = False)Tuple[numpy.ndarray, numpy.ndarray][source]

Scale a video according to spatial and temporal resizing factors.

Parameters
  • array – The array to rescale.

  • s_factor – The spatial factor to downsize by.

  • t_factor – The temporal factor to downsize by.

  • verbose – Whether to produce verbose print statements.

  • remainder – Whether to return a temporal remainder array.

Returns

The downsampled array. remainder: A tempora remainder,

in the dimensions and scale of the orignal video.

Return type

dsarray