Class OcrSummary
Get summary of OCR information for a line of text: the OcrLine object, the text angle, the text string, and the Rect[] of word boundary boxes.
Inheritance
System.Object
OcrSummary
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public class OcrSummary
Constructors
View SourceOcrSummary(OcrLine, Nullable<Double>)
Initializes a new instance of the OcrSummary class.
Declaration
public OcrSummary(OcrLine line, double? angle)
Parameters
Type | Name | Description |
---|---|---|
OcrLine | line | OcrLine object given by the OcrResult. |
System.Nullable<System.Double> | angle | Angle of text. |
Properties
View SourceAngle
Gets or sets the angle of the text.
Declaration
public double Angle { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Line
Gets the OcrLine.
Declaration
public OcrLine Line { get; }
Property Value
Type | Description |
---|---|
OcrLine |
Text
Gets or sets the text string.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceGetWordBoundaries()
Gets the Rect boundary box for each word in the line.
Declaration
public Rect[] GetWordBoundaries()
Returns
Type | Description |
---|---|
System.Windows.Rect[] | Rect[] containing the Rect boundary box for each word in the line. |