Skip to contents

This function reads a specific frame of a Python VideoCapture object and returns it as Numpy array.

Usage

read_frame(x, i)

Arguments

x

A Python VideoCapture object.

i

The 1-indexed frame to be read.

Value

A Numpy array.

Author

Simon Garnier, garnier@njit.edu