def draw_predictions(img, pred_bboxes):
    img = img.copy()
    if (len(pred_bboxes) > 0):
        for bbox in pred_bboxes:
            conf = bbox[0]
            (x, y, w, h) = bbox[1:].round().astype(int)
            cv2.rectangle(img, (x, y), ((x + w), (y + h)), (0, 255, 255), thickness=2)
            cv2.putText(img, f'{conf:.2}', (x, max(0, (y - 5))), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), thickness=1)
    return img
def draw_predictions(img, pred_bboxes):
    img = img.copy()
    if (len(pred_bboxes) > 0):
        for bbox in pred_bboxes:
            conf = bbox[0]
            (x, y, w, h) = bbox[1:].round().astype(int)
            cv2.rectangle(img, (x, y), ((x + w), (y + h)), (0, 255, 255), thickness=2)
            cv2.putText(img, f'{conf:.2}', (x, max(0, (y - 5))), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), thickness=1)
    return img