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

Method _init_ocr_task

openocr.py:178–181  ·  view source on GitHub ↗

Initialize OCR task (detection + recognition)

(self, **kwargs)

Source from the content-addressed store, hash-verified

176 self.model = OpenRecognizer(**kwargs)
177
178 def _init_ocr_task(self, **kwargs):
179 """Initialize OCR task (detection + recognition)"""
180 from tools.infer_e2e import OpenOCRE2E
181 self.model = OpenOCRE2E(**kwargs)
182
183 def _init_unirec_task(self, **kwargs):
184 """Initialize UniRec task (universal recognition)"""

Callers 1

__init__Method · 0.95

Calls 1

OpenOCRE2EClass · 0.90

Tested by

no test coverage detected