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

Method _init_det_task

openocr.py:168–171  ·  view source on GitHub ↗

Initialize detection task

(self, **kwargs)

Source from the content-addressed store, hash-verified

166 logger.info(f"✅ OpenOCR initialized successfully for task: {self.task}")
167
168 def _init_det_task(self, **kwargs):
169 """Initialize detection task"""
170 from tools.infer_det import OpenDetector
171 self.model = OpenDetector(**kwargs)
172
173 def _init_rec_task(self, **kwargs):
174 """Initialize recognition task"""

Callers 1

__init__Method · 0.95

Calls 1

OpenDetectorClass · 0.90

Tested by

no test coverage detected