fc / apps /client /utils /ocr_provider.py
jun2024's picture
Upload 2241 files
b4f2238 verified
Raw History Blame Contribute Delete
383 Bytes
"""OCR 引擎提供者 - 隔离 client 模块对 automation 的导入."""
from typing import Any
def get_ocr_engine(use_v5: bool = True) -> Any:
"""获取 OCR 引擎实例.
Args:
use_v5: 是否使用 PP-OCRv5 版本
Returns:
OCR 引擎实例
"""
from apps.automation.services.ocr import get_ocr_engine as _get
return _get(use_v5=use_v5)