ImageSink
- class cscore.ImageSink
Bases:
VideoSinkA base class for single image reading sinks.
- get_error() str
Get error string. Call this if WaitForFrame() returns 0 to determine what the error is.
- set_description(description: str) None
Set sink description.
- Parameters:
description – Description
- set_enabled(enabled: bool) None
Enable or disable getting new frames.
Disabling will cause processFrame (for callback-based CvSinks) to not be called and WaitForFrame() to not return. This can be used to save processor resources when frames are not needed.