MCPcopy
hub / github.com/firerpa/lamda / ocr

Method ocr

lamda/client.py:2325–2329  ·  view source on GitHub ↗
(self, screenshot)

Source from the content-addressed store, hash-verified

2323 result = self._service.readtext(image)
2324 return result
2325 def ocr(self, screenshot):
2326 img = screenshot.getvalue()
2327 result = self._ocr(img) or []
2328 output = [self.format(*n) for n in result]
2329 return output
2330 def format(self, box, text, confidence):
2331 bound = Bound()
2332 bound.left = int(min(p[0] for p in box))

Callers

nothing calls this directly

Calls 1

formatMethod · 0.95

Tested by

no test coverage detected