pupil_recording_interface.VideoReader.process_frame
- VideoReader.process_frame(frame, norm_pos=None)
Process a video frame.
Processing includes color conversion, un-distortion, sub-sampling and ROI extraction, provided that the corresponding parameters have been specified for this instance.
- Parameters
frame (numpy.ndarray) – The input frame.
norm_pos (iterable, len 2, optional) – The norm pos of the ROI center. If not specified, no ROI extraction will be performed.
- Returns
The processed frame.
- Return type
numpy.ndarray