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

Package: com.dynamsoft.dlr

Inheritance: CapturedResultBase -> RecognizedTextLinesResult

public class RecognizedTextLinesResult extends CapturedResultBase

Methods

Method Description
getOriginalImageHashId Gets the hash ID of the original image.
getOriginalImageTag Gets the tag of the original image.
getItems Gets all the text line result items.
getItem Gets the text line result item at a specific index.
getItemsCount Gets the count of text line result items.
getRotationTransformMatrix Gets the 3x3 rotation transformation matrix of the original image relative to the rotated image.
getErrorCode Gets the error code of the recognition result, if an error occurred.
getErrorString Gets the error message of the recognition result, if an error occurred.

getOriginalImageHashId

Gets the hash ID of the original image.

public String getOriginalImageHashId()

Return Value

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

getOriginalImageTag

Gets the tag of the original image.

public ImageTag getOriginalImageTag()

Return Value

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

See Also

ImageTag

getItems

Gets all the text line result items.

public TextLineResultItem[] getItems()

Return Value

Returns a TextLineResultItem array.

See Also

TextLineResultItem

getItem

Gets the text line result item at a specific index.

public TextLineResultItem getItem(int index)

Parameters

index The index of the text line result item to retrieve.

Return Value

Returns the TextLineResultItem at the specified index.

See Also

TextLineResultItem

getItemsCount

Gets the count of text line result items.

public int getItemsCount()

Return Value

Returns the count of text line result items.

getRotationTransformMatrix

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

public float[] getRotationTransformMatrix()

Return Value

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

getErrorCode

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

public int getErrorCode()

Return Value

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

getErrorString

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

public String getErrorString()

Return Value

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

See Also

EnumErrorCode

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: