Shortcuts

mmocr.utils.sort_vertex

mmocr.utils.sort_vertex(points_x, points_y)[源代码]

Sort box vertices in clockwise order from left-top first.

参数
  • points_x (list[float]) – x of four vertices.

  • points_y (list[float]) – y of four vertices.

返回

Sorted x and y of four vertices.

  • sorted_points_x (list[float]): x of sorted four vertices.

  • sorted_points_y (list[float]): y of sorted four vertices.

返回类型

tuple[list[float], list[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.