add support for OCR ...

This commit is contained in:
2026-10-03 22:26:03 +03:30
parent 7cad889cd0
commit 70c2d5a649
5 changed files with 102 additions and 21 deletions
+27
View File
@@ -0,0 +1,27 @@
using Tesseract;
namespace xAiApi.Models
{
public class XAiOCRDescriptor
{
/// <summary>
/// Provides Trained Data Path ...
/// </summary>
public string DataPath { get; set; }
/// <summary>
/// The Engine for Doing OCR ...
/// </summary>
public EngineMode EngineMode { get; set; }
/// <summary>
/// Enable OCR Fallback using Model ...
/// </summary>
public bool EnableOcrFallback { get; set; }
/// <summary>
/// Default OCR Language ...
/// </summary>
public string DefaultLanguage { get; set; }
}
}