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

Read the Docs v: latest
Versions
latest
stable
0.x
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.