Table of contents

GrayscaleImageUnit

The GrayscaleImageUnit class represents a grayscale image unit. It is derived from the IntermediateResultUnit class.

Definition

Module: dynamsoft_core

class GrayscaleImageUnit(IntermediateResultUnit)

Methods

Method Description
get_image_data Gets the grayscale image.
set_image_data Sets the grayscale image.

get_image_data

Gets the grayscale image.

def get_image_data(self) -> ImageData:

Return value

Returns an ImageData object that contains the grayscale image.

See Also

ImageData

set_image_data

Sets the grayscale image.

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.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: