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

Method _init_rec_task

openocr.py:173–176  ·  view source on GitHub ↗

Initialize recognition task

(self, **kwargs)

Source from the content-addressed store, hash-verified

171 self.model = OpenDetector(**kwargs)
172
173 def _init_rec_task(self, **kwargs):
174 """Initialize recognition task"""
175 from tools.infer_rec import OpenRecognizer
176 self.model = OpenRecognizer(**kwargs)
177
178 def _init_ocr_task(self, **kwargs):
179 """Initialize OCR task (detection + recognition)"""

Callers 1

__init__Method · 0.95

Calls 1

OpenRecognizerClass · 0.90

Tested by

no test coverage detected