MCPcopy
hub / github.com/sml2h3/ddddocr / is_ready

Method is_ready

ddddocr/core/base.py:70–77  ·  view source on GitHub ↗

检查引擎是否就绪 Returns: 是否就绪

(self)

Source from the content-addressed store, hash-verified

68 return {'error': '模型未加载'}
69
70 def is_ready(self) -> bool:
71 """
72 检查引擎是否就绪
73
74 Returns:
75 是否就绪
76 """
77 return self.is_initialized and self.session is not None
78
79 def switch_device(self, use_gpu: bool, device_id: int = 0) -> None:
80 """

Callers 3

__repr__Method · 0.95
predictMethod · 0.45
predictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected