MCPcopy
hub / github.com/IPADS-SAI/MobiAgent / is_available

Method is_available

utils/advanced_ocr.py:88–90  ·  view source on GitHub ↗

检查OCR功能是否可用

(self)

Source from the content-addressed store, hash-verified

86 logger.error(f"初始化OCR引擎失败: {e}")
87
88 def is_available(self) -> bool:
89 """检查OCR功能是否可用"""
90 return self._engine is not None or self._engine_paddle is not None or self._engine_tess is not None
91
92 def process_text(self, raw_text: str) -> ProcessedText:
93 """将原始文本标准化并生成多视图便于匹配"""

Callers 5

parse_omni.pyFile · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected