Page Class
Inheritance
System.Object
Page
Namespace: Syncfusion.OCRProcessor
Assembly: Syncfusion.OCRProcessor.Base.dll
Syntax
public sealed class Page : Object
Constructors
Page()
Initialize a new instance of class line.
Declaration
public Page()
Properties
ImageRotation
Gets or sets the rotation angle of the image in degrees.
Declaration
public int ImageRotation { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Lines
Gets the lines for the OCR'ed page.
Declaration
public OCRLineCollection Lines { get; }
Property Value
| Type |
|---|
| OCRLineCollection |
See Also
Rectangle
Gets or sets the BBox of the text
Declaration
public Rectangle Rectangle { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Rectangle | The bounds of the text. |
Text
Gets or sets the OCR text.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The text string. |
Methods
Add(Line)
Add a line to OCR line collection.
Declaration
public void Add(Line line)
Parameters
| Type | Name | Description |
|---|---|---|
| Line | line |
DetectBestOrientation(out Int32, out Single)
Declaration
public void DetectBestOrientation(out int orientation, out float confidence)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | orientation | |
| System.Single | confidence |
DetectBestOrientationAndScript(out Int32, out Single, out String, out Single)
Declaration
public void DetectBestOrientationAndScript(out int orientation, out float confidence, out string scriptName, out float scriptConfidence)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | orientation | |
| System.Single | confidence | |
| System.String | scriptName | |
| System.Single | scriptConfidence |