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
Namespace: Dynamsoft.DLR.intermediate_results
class RawTextLine : IDisposable
Methods
| Method | Description |
|---|---|
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 the character recognition results. |
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. |
Clone |
Clone the RawTextLine object. |
SetCharacterResults |
Sets the character recognition results. |
GetText
Gets the recognized text.
string GetText()
Return value
Returns the recognized text.
GetConfidence
Gets the confidence level of the recognized text.
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.
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.
CharacterResult GetCharacterResult(int index)
Parameters
[in] index The index of the character recognition result to retrieve.
Return value
Returns the character recognition result.
See Also
GetCharacterResults
Gets all the character recognition results.
CharacterResult[] GetCharacterResults()
Return value
Returns a CharacterResult object array stores the results.
See Also
GetLocation
Gets the location of the text line.
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.
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.
string GetSpecificationName()
Return value
Returns the name of the text line specification.
GetStatus
Gets the status of the text line.
EnumRawTextLineStatus GetStatus()
Return value
Returns the status of the text line.
See also
SetText
Sets the recognized text.
void SetText(string text)
Parameters
[in] text The text to be set.
SetLocation
Sets the location of the text line.
int SetLocation(Quadrilateral location)
Parameters
[in] location The location of the text line.
Return value
Returns 0 if successful; otherwise returns an error code.
See Also
SetRowNumber
Sets the row number of the text line within the image.
int SetRowNumber(int rowNumber)
Parameters
[in] rowNumber The row number of the text line within the image.
Return value
Returns 0 if successful; otherwise returns an error code.
SetSpecificationName
Sets the name of the text line specification that generated this element.
int SetSpecificationName(string specificationName)
Parameters
[in] specificationName The name of the text line specification.
Return value
Returns 0 if successful; otherwise returns an error code.
Clone
Clone the RawTextLine object.
RawTextLine Clone()
Return value
Returns the cloned RawTextLine object.
SetCharacterResults
Sets the character recognition results.
int SetCharacterResults(CharacterResult[] charArray)
Parameters
[in] charArray The character result array.
Return value
Returns 0 if successful; otherwise returns an error code.