def draw_rectangle(img, box, contour_idx=0, color=(0, 0, 255), thickness=3):
    return cv2.drawContours(img, box, contour_idx, color, thickness)
def draw_rectangle(img, box, contour_idx=0, color=(0, 0, 255), thickness=3):
    return cv2.drawContours(img, box, contour_idx, color, thickness)