MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / _init_unirec_task

Method _init_unirec_task

openocr.py:183–186  ·  view source on GitHub ↗

Initialize UniRec task (universal recognition)

(self, **kwargs)

Source from the content-addressed store, hash-verified

181 self.model = OpenOCRE2E(**kwargs)
182
183 def _init_unirec_task(self, **kwargs):
184 """Initialize UniRec task (universal recognition)"""
185 from tools.infer_unirec_onnx import UniRecONNX
186 self.model = UniRecONNX(**kwargs)
187
188 def _init_doc_task(self, **kwargs):
189 """Initialize Doc task (document OCR with layout)"""

Callers 1

__init__Method · 0.95

Calls 1

UniRecONNXClass · 0.90

Tested by

no test coverage detected