code: def area_of_intersection(det_x, det_y, gt_x, gt_y):
      p1 = Polygon(np.stack([det_x, det_y], axis=1)).buffer(0)
      p2 = Polygon(np.stack([gt_x, gt_y], axis=1)).buffer(0)
      return float(p1.intersection(p2).area)
  
file_path: PaddleOCR/ppocr/utils/e2e_metric/polygon_fast.py
imports: import numpy
  from shapely.geometry import Polygon
label_desc: Use image node_id 3 for calling a global function with example usage: area_of_intersection(det_x, det_y, gt_x, gt_y) and returns: float