feature: Optional OCR-Assisted Draft Pre-Fill
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
public class AzureOcrOptions
|
||||
{
|
||||
public string Endpoint { get; set; } = "";
|
||||
public string ApiKey { get; set; } = "";
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
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();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class TesseractOcrOptions
|
||||
{
|
||||
public string DataPath { get; set; } = "/usr/share/tessdata";
|
||||
public string Language { get; set; } = "eng";
|
||||
}
|
||||
Reference in New Issue
Block a user