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

Method _call_ocr

openocr.py:253–255  ·  view source on GitHub ↗

Call OCR task

(self, image_path=None, **kwargs)

Source from the content-addressed store, hash-verified

251 return self.model(img_path=image_path, batch_num=batch_num, **kwargs)
252
253 def _call_ocr(self, image_path=None, **kwargs):
254 """Call OCR task"""
255 return self.model(img_path=image_path, **kwargs)
256
257 def _call_unirec(self, image_path=None, max_length=2048, **kwargs):
258 """Call UniRec task (supports image and PDF input)"""

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected