code: def JaccardOverlap(box1, box2):
      # ended up putting this inline above
      # check if there is any overlap
      # if (box1[:, 2] < box2[0]) or (box2[2] < box1[:, 0]) or \
      #    (box1[:, 3] < box2[1]) or (box2[3] < box1[:, 1]):
      #         return 0.0
  
      # get the intersection coords
      inter_xmin = np.maximum(box1[:, 0], box2[0])
      inter_xmax = np.minimum(box1[:, 2], box2[2])
      inter_ymin = np.maximum(box1[:, 1], box2[1])
      inter_ymax = np.minimum(box1[:, 3], box2[3])
  
      joint_area = (box1[:, 2] - box1[:, 0]) * (box1[:, 3] - box1[:, 1])
      joint_area += (box2[2] - box2[0]) * (box2[3] - box2[1])
  
      dx = inter_xmax - inter_xmin
      dy = inter_ymax - inter_ymin
  
      inter_area = np.sign(np.sign(dx) + np.sign(dy)) * dx * dy
  
      jac = inter_area / (joint_area - inter_area)
      return jac
  
file_path: neon/examples/ssd/util/util.py
imports: import numpy
  from PIL import Image, ImageDraw
label_desc: Use image node_id 6 for calling a global function with example usage: JaccardOverlap(box1, box2) and returns: jac