Shortcuts

mmocr.utils.point_distance

mmocr.utils.point_distance(pt1, pt2)[源代码]

Calculate the distance between two points.

参数
  • pt1 (ArrayLike) – The first point.

  • pt2 (ArrayLike) – The second point.

返回

The distance between two points.

返回类型

float