RawTextLine
The class RawTextLine represents a recognized raw text line in an image. It can be in one of the following states:
RTLS_LOCALIZED: Localized but recognition not performed.RTLS_RECOGNITION_FAILED: Recognition failed.RTLS_RECOGNITION_SUCCEEDED: Successfully recognized.
Definition
Package: com.dynamsoft.dlr.intermediate_results
public class RawTextLine
Methods
| Method | Description |
|---|---|
RawTextLine |
Initializes a new instance of the RawTextLine class. |
getText |
Gets the recognized text. |
getConfidence |
Gets the confidence level of the recognized text. |
getCharacterResultsCount |
Gets the number of individual character recognition results in the line. |
getCharacterResult |
Gets the character recognition result at the specified index. |
getCharacterResults |
Gets all character recognition results in the line. |
getLocation |
Gets the location of the text line. |
getRowNumber |
Gets the row number of the text line within the image. |
getSpecificationName |
Gets the name of the text line specification that generated this element. |
getStatus |
Gets the status of the text line. |
setText |
Sets the recognized text. |
setLocation |
Sets the location of the text line. |
setRowNumber |
Sets the row number of the text line within the image. |
setSpecificationName |
Sets the name of the text line specification that generated this element. |
setCharacterResults |
Sets the character recognition results for the text line. |
clone |
Clones the RawTextLine object. |
RawTextLine
Initializes a new instance of the RawTextLine class.
public RawTextLine()
getText
Gets the recognized text.
public String getText()
Return value
Returns the recognized text.
getConfidence
Gets the confidence level of the recognized text.
public int getConfidence()
Return value
Returns an integer value representing the confidence level of the recognized text.
getCharacterResultsCount
Gets the number of individual character recognition results in the line.
public int getCharacterResultsCount()
Return value
Returns an integer value representing the number of individual character recognition results.
getCharacterResult
Gets the character recognition result at the specified index.
public CharacterResult getCharacterResult(int index)
Parameters
index The index of the character recognition result to retrieve.
Return value
Returns the character recognition result.
See Also
getCharacterResults
Gets all character recognition results in the line.
public CharacterResult[] getCharacterResults()
Return value
Returns an array of character recognition results.
See Also
getLocation
Gets the location of the text line.
public Quadrilateral getLocation()
Return value
Returns a Quadrilateral object which represents the location of the text line.
See Also
getRowNumber
Gets the row number of the text line within the image.
public int getRowNumber()
Return value
Returns an integer value representing the row number of the text line within the image.
getSpecificationName
Gets the name of the text line specification that generated this element.
public String getSpecificationName()
Return value
Returns the name of the text line specification.
getStatus
Gets the status of the text line.
public @EnumRawTextLineStatus int getStatus()
Return value
Returns the status of the text line.
See Also
setText
Sets the recognized text.
public void setText(String text)
Parameters
text The text to set.
setLocation
Sets the location of the text line.
public void setLocation(Quadrilateral location) throws LabelRecognizerException
Parameters
location The location of the text line as a Quadrilateral object.
Exceptions
See Also
setRowNumber
Sets the row number of the text line within the image.
public void setRowNumber(int rowNumber) throws LabelRecognizerException
Parameters
rowNumber The row number to set.
Exceptions
setSpecificationName
Sets the name of the text line specification that generated this element.
public void setSpecificationName(String specificationName) throws LabelRecognizerException
Parameters
specificationName The specification name to set.
Exceptions
setCharacterResults
Sets the character recognition results for the text line.
public void setCharacterResults(CharacterResult[] characterResults) throws LabelRecognizerException
Parameters
characterResults An array of character recognition results.
Exceptions
See Also
clone
Clones the RawTextLine object.
public RawTextLine clone()
Return value
Returns a cloned RawTextLine object.
public int getCharacterResultsCount()
Return value
Returns an integer value representing the number of individual character recognition results.
getCharacterResult
Gets the character recognition result at the specified index.
public CharacterResult getCharacterResult(int index)
Parameters
index The index of the character recognition result to retrieve.
Return value
Returns the character recognition result.
See Also
getCharacterResults
Gets all character recognition results in the line.
public CharacterResult[] getCharacterResults()
Return value
Returns an array of character recognition results.
See Also
getLocation
Gets the location of the text line.
public Quadrilateral getLocation()
Return value
Returns a Quadrilateral object which represents the location of the text line.
See Also
getRowNumber
Gets the row number of the text line within the image.
public int getRowNumber()
Return value
Returns an integer value representing the row number of the text line within the image.
getSpecificationName
Gets the name of the text line specification that generated this element.
public String getSpecificationName()
Return value
Returns the name of the text line specification.
getStatus
Gets the status of the text line.
public @EnumRawTextLineStatus int getStatus()
Return value
Returns the status of the text line.
See Also
setText
Sets the recognized text.
public void setText(String text)
Parameters
text The text to set.
setLocation
Sets the location of the text line.
public void setLocation(Quadrilateral location) throws LabelRecognizerException
Parameters
location The location of the text line as a Quadrilateral object.
Exceptions
See Also
setRowNumber
Sets the row number of the text line within the image.
public void setRowNumber(int rowNumber) throws LabelRecognizerException
Parameters
rowNumber The row number to set.
Exceptions
setSpecificationName
Sets the name of the text line specification that generated this element.
public void setSpecificationName(String specificationName) throws LabelRecognizerException
Parameters
specificationName The specification name to set.
Exceptions
setCharacterResults
Sets the character recognition results for the text line.
public void setCharacterResults(CharacterResult[] characterResults) throws LabelRecognizerException
Parameters
characterResults An array of character recognition results.
Exceptions
See Also
clone
Clones the RawTextLine object.
public RawTextLine clone()
Return value
Returns a cloned RawTextLine object.