Class ResultHighlightType
ResultHighlightType defines what highlighting mode to use for HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType). You may choose to highlight every character, word, line, or paragraph.
Inheritance
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public sealed class ResultHighlightType : Enum
Choosing how IronOCR draws debug highlights runs through ResultHighlightType, passed to HighlightTextAndSaveAsImages when an input is saved as annotated images. Word boxes each recognized word and is the usual choice for spot-checking accuracy, Character highlights individual glyphs for the finest-grained view, Line groups by text line, and Paragraph outlines whole blocks for a layout-level check. The highlight text how-to writes annotated images for debugging.
input.HighlightTextAndSaveAsImages(ocr, "highlighted.png", ResultHighlightType.Word);Fields
Character
Highlight every single detected OcrResult.Character.
Declaration
public const ResultHighlightType Character
Field Value
| Type | Description |
|---|---|
| ResultHighlightType |
Line
Highlight every single detected OcrResult.Line.
Declaration
public const ResultHighlightType Line
Field Value
| Type | Description |
|---|---|
| ResultHighlightType |
Paragraph
Highlight every single detected OcrResult.Paragraph.
Declaration
public const ResultHighlightType Paragraph
Field Value
| Type | Description |
|---|---|
| ResultHighlightType |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Word
Highlight every single detected OcrResult.Word.
Declaration
public const ResultHighlightType Word
Field Value
| Type | Description |
|---|---|
| ResultHighlightType |