File size: 383 Bytes
b4f2238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""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)