From 42484da95af71a2220742e3f6e97d12310ff69e9 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 22 Nov 2019 16:58:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Optimize=20imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocrd_repair_inconsistencies.py | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py b/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py index 1c34a8d..d0d6117 100644 --- a/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py +++ b/ocrd_repair_inconsistencies/ocrd_repair_inconsistencies.py @@ -3,34 +3,18 @@ from __future__ import absolute_import import os.path from collections import Sequence -from shapely.geometry import Polygon, LineString - 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_models.ocrd_page import ( - CoordsType, - LabelType, LabelsType, - MetadataItemType, to_xml ) -from ocrd_models.ocrd_page_generateds import ( - RegionRefType, - RegionRefIndexedType, - OrderedGroupType, - OrderedGroupIndexedType, - UnorderedGroupType, - UnorderedGroupIndexedType, - ReadingOrderType +from ocrd_utils import ( + getLogger, concat_padded, + polygon_from_points, + MIMETYPE_PAGE ) +from shapely.geometry import Polygon + from .config import OCRD_TOOL TOOL = 'ocrd_repair_inconsistencies'