def load_image_with_annotations(video_id, video_frame, image_dir, annotaitons_str):
    img = load_image(video_id, video_frame, image_dir)
    annotations = decode_annotations(annotaitons_str)
    if (len(annotations) > 0):
        for ann in annotations:
            cv2.rectangle(img, (ann['x'], ann['y']), ((ann['x'] + ann['width']), (ann['y'] + ann['height'])), (255, 0, 0), thickness=2)
    return img
def load_image_with_annotations(video_id, video_frame, image_dir, annotaitons_str):
    img = load_image(video_id, video_frame, image_dir)
    annotations = decode_annotations(annotaitons_str)
    if (len(annotations) > 0):
        for ann in annotations:
            cv2.rectangle(img, (ann['x'], ann['y']), ((ann['x'] + ann['width']), (ann['y'] + ann['height'])), (255, 0, 0), thickness=2)
    return img