Class OcrPhotoResult
Result from ReadPhoto(OcrInputBase) or ReadScreenShot(OcrInputBase)
Give an access to: Text, Confidence, and TextRegions.
Inheritance
System.Object
OcrPhotoResult
Implements
IronSoftware.IOcrResult
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class OcrPhotoResult : Object, IOcrResult
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 |
TextRegions
Ocr text and its location on the OcrInput.
Declaration
public List<OcrPhotoResult.TextRegion> TextRegions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<OcrPhotoResult.TextRegion> |
Methods
SaveAsTextFile(String)
Exports a .txt version of OcrPhotoResult. 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. |
Implements
IronSoftware.IOcrResult