Table of Contents

Class OCROptions<T>

Namespace
AiDotNet.ComputerVision.OCR
Assembly
AiDotNet.dll

Options for OCR models.

public class OCROptions<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
OCROptions<T>
Inherited Members

Properties

CharacterSet

Character set/vocabulary for recognition.

public string? CharacterSet { get; set; }

Property Value

string

ConfidenceThreshold

Minimum confidence threshold.

public T ConfidenceThreshold { get; set; }

Property Value

T

CorrectSkew

Whether to correct skewed text.

public bool CorrectSkew { get; set; }

Property Value

bool

DetectOrientation

Whether to detect text orientation.

public bool DetectOrientation { get; set; }

Property Value

bool

DetectionModel

Text detection model to use.

public TextDetectionModel DetectionModel { get; set; }

Property Value

TextDetectionModel

GroupTextLines

Whether to group text into lines/paragraphs.

public bool GroupTextLines { get; set; }

Property Value

bool

MaxRecognitionWidth

Maximum input width for the recognition model.

public int MaxRecognitionWidth { get; set; }

Property Value

int

MaxSequenceLength

Maximum sequence length for recognition.

public int MaxSequenceLength { get; set; }

Property Value

int

Mode

OCR mode (scene text, document, or both).

public OCRMode Mode { get; set; }

Property Value

OCRMode

RecognitionHeight

Input image height for the recognition model.

public int RecognitionHeight { get; set; }

Property Value

int

RecognitionModel

Text recognition model to use.

public TextRecognitionModel RecognitionModel { get; set; }

Property Value

TextRecognitionModel

SupportedLanguages

Supported languages.

public string[] SupportedLanguages { get; set; }

Property Value

string[]

UsePretrained

Whether to use pretrained weights.

public bool UsePretrained { get; set; }

Property Value

bool