ImageSourceBuffer Class

Represents a source of image data, used as input to or output from Vision AI operations.

Note

When used with ImageAnalyzer, callback is not supported. Call this constructor without arguments.

Then, using the image_writer property, get access to the ImageWriter object and write the image data to it.

Inheritance
builtins.object
ImageSourceBuffer

Constructor

ImageSourceBuffer(image_callback: ImageSourceBufferCallback | None = None)

Parameters

Name Description
image_callback

An optional callback function that will be invoked when a new image is needed.

Default value: None

Methods

close

Closes the image source buffer for writing.

close

Closes the image source buffer for writing.

close() -> None

Attributes

image_writer