StarRailCopilot/module/ocr/models.py
LmeSzinc 1e47a1f621 Add: OCR model and downgrade to py3.10
since onnxruntime doesn't support 3.11 yet
2023-05-21 09:26:58 +08:00

12 lines
200 B
Python

from module.base.decorator import cached_property
from module.ocr.ppocr import TextSystem
class OcrModel:
@cached_property
def ch(self):
return TextSystem()
OCR_MODEL = OcrModel()