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

Function scale_bbox

data/draw_marker.py:5–6  ·  view source on GitHub ↗
(bbox, width, height)

Source from the content-addressed store, hash-verified

3import cv2
4
5def scale_bbox(bbox, width, height):
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])

Callers 1

draw_thick_bboxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected