mmocr.utils.shapely2poly¶ mmocr.utils.shapely2poly(polygon)[source]¶ Convert a nested list of boundaries to a list of Polygons. Parameters polygon (Polygon) – A polygon represented by shapely.Polygon. Returns Converted numpy array Return type np.array