MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / to_list

Function to_list

app/services/tenvision_adapter.py:176–181  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

174 return list(value)
175
176
177def ocr_items(result, x_offset=0, y_offset=0):
178 items = []
179 boxes = to_list(getattr(result, 'boxes', None))
180 txts = to_list(getattr(result, 'txts', None))
181 scores = to_list(getattr(result, 'scores', None))
182 for index, (poly, text, score) in enumerate(zip(boxes, txts, scores)):
183 poly = order_points(np.asarray(poly, dtype=np.float32))
184 bbox = poly_to_bbox(poly)

Callers 3

ocr_itemsFunction · 0.85
recognize_prompt_boxesFunction · 0.85
recognize_yellow_boxesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected