Class OcrHandwritingResult
Result from ReadHandwriting(OcrInputBase)
Give an access to: Text, Confidence, and TextLines.
Inheritance
Implements
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class OcrHandwritingResult : Object
Recognized handwriting, line by line, lives on OcrHandwritingResult. It is the object IronTesseract.ReadHandwriting hands back, holding the transcribed text of a handwritten image along with where each line sits, so a developer reads the words and keeps the on-page layout from one result.
Text returns the full transcription as a single string, the quickest way to pull every recognized word at once. Confidence reports the average per-character accuracy where 1 equals 100 percent, a signal worth checking because handwriting reads less reliably than print. TextLines is a list of OcrHandwritingResult.TextLine entries, each a recognized line with its position on the input, which lets code preserve line breaks or map text back to the image. SaveAsTextFile writes the result straight to a plain .txt file when only the words are needed. Read Text for a fast dump, or iterate TextLines when layout matters.
The handwriting read how-to produces this result, and the handwriting read example shows a short run.
Properties
Confidence
OCR statistical accuracy confidence as an average of every character.
1 = 100%, 0 = 0%.
Declaration
public double Confidence { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Text
All Ocr texts from OcrInput.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TextLines
Ocr text line and its location on the OcrInput.
Declaration
public List<OcrHandwritingResult.TextLine> TextLines { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<OcrHandwritingResult.TextLine> |
Methods
SaveAsTextFile(String)
Exports a .txt version of OcrHandwritingResult. This is a plain text file.
Declaration
public void SaveAsTextFile(string Path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Path | The file path the text file will be saved to. |