mmocr.utils.poly_iou¶ mmocr.utils.poly_iou(poly_a, poly_b, zero_division=0.0)[source]¶ Calculate the IOU between two polygons. Parameters poly_a (Polygon) – Polygon a. poly_b (Polygon) – Polygon b. zero_division (float) – The return value when invalid polygon exists. Returns The IoU between two polygons. Return type float