MCPcopy Create free account
hub / github.com/Ar-Ray-code/lingbot-depth-trt / put_label

Function put_label

python/scripts/live_demo.py:41–43  ·  view source on GitHub ↗
(image: np.ndarray, label: str)

Source from the content-addressed store, hash-verified

39
40
41def put_label(image: np.ndarray, label: str) -> None:
42 cv2.rectangle(image, (8, 8), (8 + 12 * len(label), 36), (0, 0, 0), -1)
43 cv2.putText(image, label, (14, 29), cv2.FONT_HERSHEY_SIMPLEX, 0.65, (255, 255, 255), 2, cv2.LINE_AA)
44
45
46def put_top_right_text(image: np.ndarray, text: str) -> None:

Callers 1

make_comparisonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected