ImageWriter Class

Represents the ability to write image data, for use as input to Vision AI operations.

Inheritance
builtins.object
ImageWriter

Constructor

ImageWriter(handle: c_void_p)

Parameters

Name Description
handle
Required

Methods

write

Writes a single image to the internal buffer.

Note

When used with ImageAnalyzer, the image needs to be in a format that's supported by the Image Analysis service,

such as JPEG, PNG or BMP. See full list of supported formats here: https://aka.ms/ia-input.

The SDK sends the image buffer as-is to the service. It does not do any format conversion or other modifications.

write

Writes a single image to the internal buffer.

Note

When used with ImageAnalyzer, the image needs to be in a format that's supported by the Image Analysis service,

such as JPEG, PNG or BMP. See full list of supported formats here: https://aka.ms/ia-input.

The SDK sends the image buffer as-is to the service. It does not do any format conversion or other modifications.

write(buffer: bytes)

Parameters

Name Description
buffer
Required

The image buffer as a bytes object.