Class OcrResult.OcrResultElement
Lowest level of abstract OcrResult DOM element. All result objects extend from this including OcrResult.Barcode, OcrResult.Character, OcrResult.Word, OcrResult.Line, OcrResult.Paragraph ...
Inheritance
System.Object
OcrResult.OcrResultElement
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public abstract class OcrResultElement : Object
Constructors
OcrResultElement()
Declaration
protected OcrResultElement()
Properties
Height
Height in Pixels
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Location
Returns a IronSoftware.Drawing.Rectangle of the location and size of this element within an OCR page. Units are pixels and reference locations on the source image.
Declaration
public Rectangle Location { get; }
Property Value
Type | Description |
---|---|
IronSoftware.Drawing.Rectangle |
Width
Width in Pixels
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
X
Position of this OCR Results object on the source image (page) in pixels counted from the left edge.
Declaration
public int X { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Y
Position of this OCR Results object on the source image (page) in pixels counted down from the top edge.
Declaration
public int Y { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
ToBitmap(OcrInput)
Returns an image of this element.
Declaration
public AnyBitmap ToBitmap(OcrInput Input)
Parameters
Type | Name | Description |
---|---|---|
OcrInput | Input | The OcrInput document that was read by IronTesseract |
Returns
Type | Description |
---|---|
IronSoftware.Drawing.AnyBitmap | A IronSoftware.Drawing.AnyBitmap. |