BinaryImageUnit
The BinaryImageUnit
class represents a unit that contains a binary image. It inherits from the IntermediateResultUnit
class and stores binary image data.
Definition
Module: dynamsoft_core
class BinaryImageUnit(IntermediateResultUnit)
Methods
Method | Description |
---|---|
get_image_data |
Gets the binary image data. |
set_image_data |
Sets the binary image data. |
get_image_data
Gets the binary image data.
def get_image_data(self) -> ImageData:
Return value
Returns an ImageData
object containing the binary image data.
See Also
set_image_data
Sets the binary image data.
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