mirror of
https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
synced 2025-06-09 03:40:06 +02:00
🎨 Optimize imports
This commit is contained in:
parent
c868ec568d
commit
42484da95a
1 changed files with 6 additions and 22 deletions
|
@ -3,34 +3,18 @@ from __future__ import absolute_import
|
||||||
import os.path
|
import os.path
|
||||||
from collections import Sequence
|
from collections import Sequence
|
||||||
|
|
||||||
from shapely.geometry import Polygon, LineString
|
|
||||||
|
|
||||||
from ocrd import Processor
|
from ocrd import Processor
|
||||||
from ocrd_utils import (
|
|
||||||
getLogger, concat_padded,
|
|
||||||
coordinates_for_segment,
|
|
||||||
coordinates_of_segment,
|
|
||||||
polygon_from_points,
|
|
||||||
points_from_polygon,
|
|
||||||
xywh_from_polygon,
|
|
||||||
MIMETYPE_PAGE
|
|
||||||
)
|
|
||||||
from ocrd_modelfactory import page_from_file
|
from ocrd_modelfactory import page_from_file
|
||||||
from ocrd_models.ocrd_page import (
|
from ocrd_models.ocrd_page import (
|
||||||
CoordsType,
|
|
||||||
LabelType, LabelsType,
|
|
||||||
MetadataItemType,
|
|
||||||
to_xml
|
to_xml
|
||||||
)
|
)
|
||||||
from ocrd_models.ocrd_page_generateds import (
|
from ocrd_utils import (
|
||||||
RegionRefType,
|
getLogger, concat_padded,
|
||||||
RegionRefIndexedType,
|
polygon_from_points,
|
||||||
OrderedGroupType,
|
MIMETYPE_PAGE
|
||||||
OrderedGroupIndexedType,
|
|
||||||
UnorderedGroupType,
|
|
||||||
UnorderedGroupIndexedType,
|
|
||||||
ReadingOrderType
|
|
||||||
)
|
)
|
||||||
|
from shapely.geometry import Polygon
|
||||||
|
|
||||||
from .config import OCRD_TOOL
|
from .config import OCRD_TOOL
|
||||||
|
|
||||||
TOOL = 'ocrd_repair_inconsistencies'
|
TOOL = 'ocrd_repair_inconsistencies'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue