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.objectImageSourceBuffer
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python