Shortcuts

mmocr.utils.poly_iou

mmocr.utils.poly_iou(poly_a, poly_b, zero_division=0.0)[源代码]

Calculate the IOU between two polygons.

参数
  • poly_a (Polygon) – Polygon a.

  • poly_b (Polygon) – Polygon b.

  • zero_division (float) – The return value when invalid polygon exists.

返回

The IoU between two polygons.

返回类型

float