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

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.