File size: 212 Bytes
197e2d4
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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