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

Method format

lamda/client.py:2330–2338  ·  view source on GitHub ↗
(self, box, text, confidence)

Source from the content-addressed store, hash-verified

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))
2333 bound.top = int(min(p[1] for p in box))
2334 bound.bottom = int(max(p[1] for p in box))
2335 bound.right = int(max(p[0] for p in box))
2336 info = dict(text=text, confidence=confidence,
2337 bound=bound)
2338 return info
2339
2340
2341class Device(object):

Callers 15

ocrMethod · 0.95
setup.pyFile · 0.80
add_upstreamFunction · 0.80
adb_tcpFunction · 0.80
startmitm.pyFile · 0.80
BcastCallMethodFunction · 0.80
discover.pyFile · 0.80
ida.pyFile · 0.80
truncate_stringMethod · 0.80
interceptMethod · 0.80
__str__Method · 0.80
drag_toMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected