Shortcuts

mmocr.utils.shapely2poly

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

Convert a nested list of boundaries to a list of Polygons.

参数

polygon (Polygon) – A polygon represented by shapely.Polygon.

返回

Converted numpy array

返回类型

np.array