Shortcuts

mmocr.utils.poly2shapely

mmocr.utils.poly2shapely(polygon)[源代码]

Convert a polygon to shapely.geometry.Polygon.

参数

polygon (ArrayLike) – A set of points of 2k shape.

返回

A polygon object.

返回类型

polygon (Polygon)