class Input::ImageWriter

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

Members

~ImageWriter

Syntax: public inline virtual ~ImageWriter ( );

Destructs an instance of the ImageWriter class.

Write

Syntax: public inline void Write ( const uint8_t * data , size_t dataSizeInBytes );

Writes a single image to the internal buffer.

Parameters

  • data The image data buffer

  • dataSizeInBytes The number of bytes to copy from the data buffer

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.