Spaces:
Sleeping
Sleeping
Update pipeline/mmocr/mmocr/utils/polygon_utils.py
Browse files
pipeline/mmocr/mmocr/utils/polygon_utils.py
CHANGED
@@ -10,9 +10,9 @@ import shapely
|
|
10 |
from mmengine.utils import is_list_of
|
11 |
from shapely.geometry import MultiPolygon, Polygon
|
12 |
|
13 |
-
from mmocr.utils import bbox2poly, valid_boundary
|
14 |
-
from mmocr.utils.check_argument import is_2dlist
|
15 |
-
from mmocr.utils.typing_utils import ArrayLike
|
16 |
|
17 |
|
18 |
def rescale_polygon(polygon: ArrayLike,
|
|
|
10 |
from mmengine.utils import is_list_of
|
11 |
from shapely.geometry import MultiPolygon, Polygon
|
12 |
|
13 |
+
from pipeline.mmocr.mmocr.utils import bbox2poly, valid_boundary
|
14 |
+
from pipeline.mmocr.mmocr.utils.check_argument import is_2dlist
|
15 |
+
from pipeline.mmocr.mmocr.utils.typing_utils import ArrayLike
|
16 |
|
17 |
|
18 |
def rescale_polygon(polygon: ArrayLike,
|