Class OcrTextSize
Get text size and bounding box information using OCR for a line of text.
Inheritance
System.Object
OcrTextSize
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 OcrTextSize
Constructors
View SourceOcrTextSize(OcrSummary)
Initializes a new instance of the OcrTextSize class.
Declaration
public OcrTextSize(OcrSummary summary)
Parameters
Type | Name | Description |
---|---|---|
OcrSummary | summary | OcrSummary object. |
Properties
View SourceBottomOfText
Gets or sets the Y-coordinate of the text's bottom boundary.
Declaration
public double BottomOfText { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BoundingBox
Gets or sets the Rect boundary box for the line of text.
Declaration
public Rect BoundingBox { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Rect |
Height
Gets or sets the height of the text (the absolute distance between the top of text and the bottom of text).
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
TopOfText
Gets or sets the Y-coordinate of the text's top boundary.
Declaration
public double TopOfText { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceRunTextSize(Double, Boolean, Boolean, TiresiasSettings)
Run text size test on the line of text.
Declaration
public bool RunTextSize(double imageHeight, bool imageFromPC, bool imageFromConsole, TiresiasSettings settings)
Parameters
Type | Name | Description |
---|---|---|
System.Double | imageHeight | Height of image that OCR was run on. |
System.Boolean | imageFromPC | Indicates whether the image is from a PC source. |
System.Boolean | imageFromConsole | Indicates whether the image is from a console source. |
TiresiasSettings | settings |
Returns
Type | Description |
---|---|
System.Boolean | Returns an integer (corresponding to the TextSizeResult enum) indicating if the line of text passed the test size test. |