Shortcuts

mmocr.utils.point_distance

mmocr.utils.point_distance(pt1, pt2)[source]

Calculate the distance between two points.

Parameters
  • pt1 (ArrayLike) – The first point.

  • pt2 (ArrayLike) – The second point.

Returns

The distance between two points.

Return type

float