DocumentLayoutResult<T>
Models & Types · AiDotNet.Document
Represents the result of document layout detection.
For Beginners
Layout detection identifies different parts of a document (text blocks, tables, figures, etc.) and their locations. This result class contains all the detected regions with their bounding boxes and types.
Constructors
| Constructor | Summary |
|---|---|
DocumentLayoutResult() |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<LayoutRegion<T>> Regions { get; set; } |
Gets the detected layout regions. |
IReadOnlyList<int> ReadingOrder { get; set; } |
Gets the reading order of text regions (if detected). |
double ProcessingTimeMs { get; set; } |
Gets processing time in milliseconds. |
int TotalRegions { get; } |
Gets the total number of detected regions. |
Methods
| Method | Summary |
|---|---|
IEnumerable<LayoutRegion<T>> GetHighConfidenceRegions(double threshold) |
Gets regions with confidence above a threshold. |
IEnumerable<LayoutRegion<T>> GetRegionsByType(LayoutElementType elementType) |
Gets regions filtered by element type. |