code: 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
  
file_path: neon/examples/ssd/util/util.py
imports: import numpy
  from PIL import Image, ImageDraw
label_desc: Use image node_id 5 for calling a global function with example usage: plot_image(img, im_shape, gt_boxes, boxes, score_threshold) and returns: img