Table of contents

ColourImageUnit

The ColourImageUnit class represents a unit that contains color image. It is derived from the IntermediateResultUnit class.

Definition

Module: dynamsoft_core

class ColourImageUnit(IntermediateResultUnit)

Methods

Method Description
get_image_data Gets the image data of the color image unit.
set_image_data Sets the image data of the color image unit.

get_image_data

Gets the image data of the color image unit.

def get_image_data(self) -> ImageData:

Return value

Returns an ImageData object that contains the image data of the color image unit.

See Also

ImageData

set_image_data

Sets the image data of the color image unit.

def set_image_data(self, img_data: ImageData) -> int:

Parameters

img_data The image data to set.

Return value

Returns 0 if succeeds, nonzero otherwise.

See Also

ImageData

Is this page helpful?

YesYes NoNo

In this article: