Class OCROptions<T>
- Namespace
- AiDotNet.ComputerVision.OCR
- Assembly
- AiDotNet.dll
Options for OCR models.
public class OCROptions<T>
Type Parameters
TThe numeric type used for calculations.
- Inheritance
-
OCROptions<T>
- Inherited Members
Properties
CharacterSet
Character set/vocabulary for recognition.
public string? CharacterSet { get; set; }
Property Value
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
DetectOrientation
Whether to detect text orientation.
public bool DetectOrientation { get; set; }
Property Value
DetectionModel
Text detection model to use.
public TextDetectionModel DetectionModel { get; set; }
Property Value
GroupTextLines
Whether to group text into lines/paragraphs.
public bool GroupTextLines { get; set; }
Property Value
MaxRecognitionWidth
Maximum input width for the recognition model.
public int MaxRecognitionWidth { get; set; }
Property Value
MaxSequenceLength
Maximum sequence length for recognition.
public int MaxSequenceLength { get; set; }
Property Value
Mode
OCR mode (scene text, document, or both).
public OCRMode Mode { get; set; }
Property Value
RecognitionHeight
Input image height for the recognition model.
public int RecognitionHeight { get; set; }
Property Value
RecognitionModel
Text recognition model to use.
public TextRecognitionModel RecognitionModel { get; set; }
Property Value
SupportedLanguages
Supported languages.
public string[] SupportedLanguages { get; set; }
Property Value
- string[]
UsePretrained
Whether to use pretrained weights.
public bool UsePretrained { get; set; }