Shortcuts

mmocr.utils.bbox_center_distance

mmocr.utils.bbox_center_distance(box1, box2)[源代码]

Calculate the distance between the center points of two bounding boxes.

参数
  • box1 (ArrayLike) – The first bounding box represented in [x1, y1, x2, y2].

  • box2 (ArrayLike) – The second bounding box represented in [x1, y1, x2, y2].

返回

The distance between the center points of two bounding boxes.

返回类型

float