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

Method _init_doc_task

openocr.py:188–191  ·  view source on GitHub ↗

Initialize Doc task (document OCR with layout)

(self, **kwargs)

Source from the content-addressed store, hash-verified

186 self.model = UniRecONNX(**kwargs)
187
188 def _init_doc_task(self, **kwargs):
189 """Initialize Doc task (document OCR with layout)"""
190 from tools.infer_doc_onnx import OpenDocONNX
191 self.model = OpenDocONNX(**kwargs)
192
193 def __call__(self, *args, **kwargs):
194 """

Callers 1

__init__Method · 0.95

Calls 1

OpenDocONNXClass · 0.90

Tested by

no test coverage detected