OCRResult<T>
Models & Types · AiDotNet.Document
Represents the result of OCR (Optical Character Recognition) processing.
For Beginners
OCR converts images of text into machine-readable text. This result class contains the recognized text along with position information for each word, line, and block of text.
Constructors
| Constructor | Summary |
|---|---|
OCRResult() |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<OCRBlock<T>> Blocks { get; set; } |
Gets the text blocks (paragraphs or regions). |
IReadOnlyList<OCRLine<T>> Lines { get; set; } |
Gets the recognized lines of text. |
IReadOnlyList<OCRWord<T>> Words { get; set; } |
Gets the recognized words with their positions and confidence. |
T AverageConfidence { get; set; } |
Gets the average confidence across all recognized text. |
bool RequiresDeskewing { get; set; } |
Gets whether the document appears to be rotated or skewed. |
double ProcessingTimeMs { get; set; } |
Gets processing time in milliseconds. |
double? RotationAngle { get; set; } |
Gets the detected rotation angle in degrees if applicable. |
string DetectedLanguage { get; set; } |
Gets the detected language code (ISO 639-1, e.g., “en”, “zh”). |
string FullText { get; set; } |
Gets the full recognized text from the document. |