Class ModelType
Specifies the type of ML model to use for advanced OCR operations.
Different model types offer trade-offs between speed and accuracy.
Inheritance
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public sealed class ModelType : Enum
Choosing the machine-learning model behind an advanced read runs through ModelType, the second argument to IronTesseract.ReadDocumentAdvanced. Normal is the standard model, tuned for speed and general documents, and is the right default for most scans. Enhanced trades processing time for higher accuracy on challenging images, complex layouts, or low-quality sources, so reach for it when a Normal read leaves errors. The advanced document read how-to walks through the workflow, and the read table how-to uses the result it produces.
OcrDocAdvancedResult result = ironTesseract.ReadDocumentAdvanced(input, ModelType.Enhanced);Fields
Enhanced
Enhanced recognition model optimized for accuracy.
Provides higher accuracy for challenging images at the cost of increased processing time.
Recommended for documents with complex layouts, low quality images, or when maximum accuracy is required.
Declaration
public const ModelType Enhanced
Field Value
| Type | Description |
|---|---|
| ModelType |
Normal
Standard recognition model optimized for speed and general use cases.
Recommended for most scenarios where good accuracy is required with faster processing.
Declaration
public const ModelType Normal
Field Value
| Type | Description |
|---|---|
| ModelType |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |