neuralib.imglib.io.read_avi

neuralib.imglib.io.read_avi(avi_file, grey_scale=True)[source]

Read a sequences file (i.e., AVI/MP4) into an array, converting to grayscale if specified.

Parameters:
  • avi_file (str | Path | PathLike[str]) – Path to the AVI file.

  • grey_scale (bool) – Whether to convert frames to grayscale.

Returns:

Sequences array. Array[uint8, [F, W, H] | [F, W, H, 3]]

Return type:

ndarray