Class OcrHandwritingResult.TextLine
Inheritance
System.Object
OcrHandwritingResult.TextLine
Assembly: IronOcr.dll
Syntax
public sealed class TextLine : ValueType
One recognized line of handwriting, with its text, position, and confidence, lives on OcrHandwritingResult.TextLine. You read these lines from a handwriting result after IronOCR processes a handwritten image, one TextLine per line it detects.
TextInLine holds the recognized text for the line, LineConf reports the confidence score so you can flag low-quality reads, LineRect gives the line's bounding rectangle on the page, and PageNumber identifies which page it came from. The static Empty field provides a default line when no result applies. Loop the lines from the handwriting result, keep those whose LineConf clears your threshold, and use LineRect to lay the text back over the source image. Because it is a value type nested under OcrHandwritingResult, refer to it with the qualified name when you declare variables.
The read handwritten image how-to walks through producing these results, and the read handwritten image example reads the lines and their confidence.
Constructors
TextLine(String, Rectangle, Single)
Declaration
public TextLine(string textInLine, Rectangle lineRect, float confidence)
Parameters
| Type |
Name |
Description |
| System.String |
textInLine |
|
| IronSoftware.Drawing.Rectangle |
lineRect |
|
| System.Single |
confidence |
|
TextLine(String, Rectangle, Single, Int32)
Declaration
public TextLine(string textInLine, Rectangle lineRect, float confidence, int frameNumber)
Parameters
| Type |
Name |
Description |
| System.String |
textInLine |
|
| IronSoftware.Drawing.Rectangle |
lineRect |
|
| System.Single |
confidence |
|
| System.Int32 |
frameNumber |
|
Fields
Empty
Declaration
public static readonly OcrHandwritingResult.TextLine Empty
Field Value
Properties
LineConf
Declaration
public float LineConf { get; }
Property Value
| Type |
Description |
| System.Single |
|
LineRect
Declaration
public Rectangle LineRect { get; }
Property Value
| Type |
Description |
| IronSoftware.Drawing.Rectangle |
|
PageNumber
Declaration
public int PageNumber { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
TextInLine
Declaration
public string TextInLine { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
Equals(OcrHandwritingResult.TextLine)
Declaration
public bool Equals(OcrHandwritingResult.TextLine others)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.IEquatable<>