MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / scale_point

Function scale_point

data/draw_marker.py:8–9  ·  view source on GitHub ↗
(point, width, height)

Source from the content-addressed store, hash-verified

6 return (np.array(bbox[0]) / 1000) * np.array([width, height, width, height])
7
8def scale_point(point, width, height):
9 return (np.array(point[0]) / 1000) * np.array([width, height])
10
11def draw_points(draw, image, data_entry, points):
12 for color, key in points:

Callers 1

draw_pointsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected