Class OcrDocAdvancedResult
Result from ReadDocumentAdvanced(OcrInputBase, ModelType)
Provides access to: Text, Confidence, Tables, NoOutlineRegions, Words, and Characters.
Implements
Inherited Members
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class OcrDocAdvancedResult : AdvancedOcrResultBase, IOcrResult
Remarks
This result class supports both structured table data and word-level OCR output with bounding box coordinates.
Use the Words property to access individual words with their positions, enabling deterministic reading order reconstruction and spatial analysis of text within table cells.
Example:
var ocr = new IronTesseract();
var input = new OcrInput();
input.LoadPdf("scanned.pdf");
var result = ocr.ReadDocumentAdvanced(input);
// Access structured table data
foreach (var table in result.Tables) { /* ... */ }
// Access word-level coordinates for reading order
foreach (var word in result.Words)
{
Console.WriteLine($"'{word.Text}' at ({word.X},{word.Y}) page {word.PageNumber}");
}
// Reconstruct ordered text deterministically
var orderedText = string.Join(" ",
result.Words
.Where(w => w.PageNumber == 1)
.OrderBy(w => w.Y)
.ThenBy(w => w.X)
.Select(w => w.Text));
Properties
Confidence
Ocr statistical accuracy confidence as an average of every character.
1 = 100%, 0 = 0%.
Declaration
public override double Confidence { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Overrides
NoOutlineRegions
Collection of Ocr region without outlines from OcrInput
Declaration
public IEnumerable<NoOutlineRegion> NoOutlineRegions { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<NoOutlineRegion> |
Tables
Collection of recognized tables and their informations from OcrInput
Declaration
public Tables Tables { get; }
Property Value
| Type | Description |
|---|---|
| Tables |
Remarks
Only tables with clarity outlines can be recognized.
Text
All Ocr texts from OcrInput.
Declaration
public override string Text { get; }
Property Value
| Type | Description |
|---|---|
| System.String |