Documentation
Table of contents

RecognizedTextLinesResult

The RecognizedTextLinesResult class represents the result of a text recognition process. It provides access to information about the recognized text lines, the original image, and any errors that occurred during the recognition process.

Definition

Module: dynamsoft_label_recognizer

class RecognizedTextLinesResult(object)

Methods

Method Description
get_original_image_hash_id Gets the hash ID of the original image.
get_original_image_tag Gets the tag of the original image.
get_items Gets all the text line result items.
get_rotation_transform_matrix Gets the 3x3 rotation transformation matrix of the original image relative to the rotated image.
get_error_code Gets the error code of the recognition result, if an error occurred.
get_error_string Gets the error message of the recognition result, if an error occurred.

get_original_image_hash_id

Gets the hash ID of the original image.

def get_original_image_hash_id(self) -> str:

Return Value

Returns a string containing the hash ID of the original image.

get_original_image_tag

Gets the tag of the original image.

def get_original_image_tag(self) -> ImageTag:

Return Value

Returns an ImageTag object representing the tag of the original image.

See Also

ImageTag

get_items

Gets all the text line result items.

def get_items(self) -> List[TextLineResultItem]:

Return Value

Returns a TextLineResultItem list.

See Also

TextLineResultItem

get_rotation_transform_matrix

Gets the 3x3 rotation transformation matrix of the original image relative to the rotated image.

def get_rotation_transform_matrix(self) -> List[float]:

Return Value

Returns a float list of length 9 which represents a 3x3 rotation matrix.

get_error_code

Gets the error code of the recognition result, if an error occurred.

def get_error_code(self) -> int:

Return Value

Returns the error code of the recognition result, or 0 if no error occurred.

See Also

EnumErrorCode

get_error_string

Gets the error message of the recognition result, if an error occurred.

def get_error_string(self) -> str:

Return Value

Returns a string containing the error message of the recognition result, or an empty string if no error occurred.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 3.x
      • Version 3.2.30
      • Version 3.2.20
      • Version 3.2.10
      • Version 3.2.0
      • Version 3.0.30
      • Version 3.0.20
      • Version 3.0.10
      • Version 3.0.0
    • Version 2.x
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.0.0
      • Version 2.2.10
      • Version 2.0.0
    • Version 1.x
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
    • Documentation Homepage
    Change +