13 lines
431 B
C#
13 lines
431 B
C#
public class OcrOptions
|
|
{
|
|
public const string Section = "Ocr";
|
|
|
|
public bool Enabled { get; set; } = false;
|
|
public string Provider { get; set; } = "azure"; // "azure" or "tesseract"
|
|
public double ConfidenceThreshold { get; set; } = 0.7;
|
|
public int PollIntervalSeconds { get; set; } = 15;
|
|
|
|
public AzureOcrOptions Azure { get; set; } = new();
|
|
public TesseractOcrOptions Tesseract { get; set; } = new();
|
|
}
|