code: def iou_of(boxes0, boxes1, eps=1e-5):
      overlap_left_top = np.maximum(boxes0[..., :2], boxes1[..., :2])
      overlap_right_bottom = np.minimum(
          boxes0[..., 2:], boxes1[..., 2:]
      )
      overlap_area = area_of(overlap_left_top, overlap_right_bottom)
      area0 = area_of(boxes0[..., :2], boxes0[..., 2:])
      area1 = area_of(boxes1[..., :2], boxes1[..., 2:])
      return overlap_area / (area0 + area1 - overlap_area + eps)
  
file_path: PaddleHub/modules/image/face_detection/ultra_light_fast_generic_face_detector_1mb_320/processor.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import time
  import base64
  import cv2
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: iou_of(boxes0, boxes1, eps) and returns: unknown