IntermediateResultUnit
The IntermediateResultUnit
class represents an intermediate result unit used in image processing. It is an abstract base class with multiple subclasses, each representing a different type of unit such as pre-detected regions, localized barcodes, decoded barcodes, localized text lines, binary image, gray image, etc.
Definition
Module: dynamsoft_core
class IntermediateResultUnit
Methods
Method | Description |
---|---|
get_hash_id |
Gets the hash ID of the unit. |
get_original_image_hash_id |
Gets the hash ID of the original image. |
get_original_image_tag |
Gets the image tag of the original image. |
get_transform_matrix |
Gets the transformation matrix based on EnumTransformMatrixType . |
get_type |
Gets the type of the intermediate result unit. |
get_usage_count |
Gets the usage count of the intermediate result. |
clone |
Creates a copy of the intermediate result unit. |
replace |
Replaces the IntermediateResultUnit object to the specified IntermediateResultUnit object. |
set_hash_id |
Sets the hash ID of the unit. |
set_original_image_hash_id |
Sets the hash ID of the original image. |
set_original_image_tag |
Sets the image tag of the original image. |
set_transform_matrix |
Sets the transformation matrix based on EnumTransformMatrixType . |
get_hash_id
Gets the hash ID of the intermediate result unit.
def get_hash_id(self) -> str:
Return value
Returns the hash ID of the unit.
get_original_image_hash_id
Gets the hash ID of the original image.
def get_original_image_hash_id(self) -> str:
Return value
Returns the hash ID of the original image.
get_original_image_tag
Gets the image tag of the original image.
def get_original_image_tag(self) -> ImageTag:
Return value
Returns the image tag of the original image.
See Also
get_transform_matrix
Gets the transformation matrix based on EnumTransformMatrixType
.
def get_transform_matrix(self, matrix_type: int) -> List[float]:
Parameters
matrix_type
: The transform matrix type. This is one of the values of the EnumTransformMatrixType enumeration.
Return value
A float array which represents the rotation transform matrix.
See Also
get_type
Gets the type of the intermediate result unit.
def get_type(self) -> int:
Return value
Returns the type of the intermediate result unit.
See Also
EnumIntermediateResultUnitType
get_usage_count
Gets the usage count of the intermediate result.
def get_usage_count(self) -> int:
Return value
Returns the usage count of the intermediate result.
clone
Creates a copy of the intermediate result unit.
def clone(self) -> "IntermediateResultUnit":
Return value
Returns a copy of the intermediate result unit.
See Also
replace
Replaces the specified IntermediateResultUnit
object with the current IntermediateResultUnit
object.
def replace(self, unit: "IntermediateResultUnit") -> int:
Parameters
unit
The IntermediateResultUnit
object to be replaced.
Return value
Returns 0 if succeeds, nonzero otherwise.
set_hash_id
Sets the hash ID of the intermediate result unit.
def set_hash_id(self, hash_id: str) -> None:
Parameters
hash_id
The hash ID to set.
set_original_image_hash_id
Sets the hash ID of the original image.
def set_original_image_hash_id(self, original_image_hash_id: str) -> None:
Parameters
original_image_hash_id
The hash ID to set.
set_original_image_tag
Sets the image tag of the original image.
def set_original_image_tag(self, tag: ImageTag) -> None:
Parameters
tag
The image tag to set.
See Also
set_transform_matrix
Sets the transformation matrix based on EnumTransformMatrixType
.
def set_transform_matrix(self, matrix_type: int, matrix: List[float]) -> None:
Parameters
matrix_type
: The transform matrix type. This is one of the values of the EnumTransformMatrixType enumeration.
matrix
A float array which represents the rotation transform matrix.
See Also