(img, im_shape, gt_boxes, boxes, score_threshold)
return img
Creates a PIL image object with the image, and the gt_boxes
    as green, and the predicted boxes as red. Only predicted
    boxes greater than score_threshold are kept.
Creates a PIL image object with the image, and the gt_boxes
    as green, and the predicted boxes as red. Only predicted
    boxes greater than score_threshold are kept.
Creates a PIL image object with the image and the gt_boxes as green and the predicted boxes as red . Only predicted boxes greater than score_threshold are kept .
def plot_image(img, im_shape, gt_boxes, boxes, score_threshold):
    """
    Creates a PIL image object with the image, and the gt_boxes
    as green, and the predicted boxes as red. Only predicted
    boxes greater than score_threshold are kept.
    """
    img = prepare_image(img, im_shape)  # create PIL Image object

    gtb = convert_boxes_to_pixels(gt_boxes, im_shape)
    boxes = convert_boxes_to_pixels(boxes, im_shape)

    scores = boxes[:, SCORE_IDX]
    boxes = boxes[np.where(scores > score_threshold)[0], :]

    img = draw_boxes(img, gtb, boxes)

    return img
def plot_image ( img , im_shape , gt_boxes , boxes , score_threshold ) : img = prepare_image ( img , im_shape ) # create PIL Image object gtb = convert_boxes_to_pixels ( gt_boxes , im_shape ) boxes = convert_boxes_to_pixels ( boxes , im_shape ) scores = boxes [ : , SCORE_IDX ] boxes = boxes [ np . where ( scores > score_threshold ) [ 0 ] , : ] img = draw_boxes ( img , gtb , boxes ) return img