SS_solar_POC_ver-1.0 / services /overlay_service.py
SathvikGanta's picture
Upload 16 files
197e2d4 verified
raw
history blame contribute delete
212 Bytes
import cv2
def overlay_boxes(frame, boxes):
for box in boxes:
x_min, y_min, x_max, y_max = map(int, box)
cv2.rectangle(frame, (x_min, y_min), (x_max, y_max), (0, 0, 255), 2)
return frame