Shortcuts

mmocr.utils.polys2shapely

mmocr.utils.polys2shapely(polygons)[source]

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

Parameters

polygons (list) – The point coordinates of the instance boundary.

Returns

Converted shapely.Polygon.

Return type

list