pupil_recording_interface.VideoReader.get_roi

VideoReader.get_roi(frame, norm_pos)

Extract the ROI from a video frame.

Parameters
  • frame (numpy.ndarray) – The input frame.

  • norm_pos (iterable, len 2) – The norm pos of the ROI center.

Returns

The extracted ROI.

Return type

numpy.ndarray