feat: add mastery feature to recitation wheel

This commit is contained in:
赵杰 Jie Zhao (雄狮汽车科技)
2025-11-02 23:46:11 +08:00
parent eddbe71849
commit cad03268f3
14 changed files with 439 additions and 617 deletions

View File

@@ -105,9 +105,10 @@ class MLConfig:
class OCRConfig:
"""OCR识别配置"""
# OCR引擎配置
enable_tesseract: bool = True
enable_paddleocr: bool = True
enable_easyocr: bool = True
# 默认只启用轻量级Tesseract其他引擎需要额外安装深度学习框架
enable_tesseract: bool = True # 轻量级,推荐使用
enable_paddleocr: bool = False # 可选需要PaddlePaddle占用内存较大
enable_easyocr: bool = False # 可选需要PyTorch占用内存很大1-2GB
# 识别参数
min_confidence: float = 0.6