mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 01:49:41 +00:00
1e47a1f621
since onnxruntime doesn't support 3.11 yet
12 lines
200 B
Python
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()
|