From 3aecf47f5327e9c9396e0969c4927b5a1db9f7ad Mon Sep 17 00:00:00 2001 From: vahidrezanezhad Date: Wed, 9 Dec 2020 17:11:05 +0100 Subject: [PATCH] Update eynollah.py --- sbb_newspapers_org_image/eynollah.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbb_newspapers_org_image/eynollah.py b/sbb_newspapers_org_image/eynollah.py index 4ea28a0..d814889 100644 --- a/sbb_newspapers_org_image/eynollah.py +++ b/sbb_newspapers_org_image/eynollah.py @@ -30,7 +30,7 @@ warnings.filterwarnings("ignore") from scipy.signal import find_peaks from scipy.ndimage import gaussian_filter1d from shapely import geometry -from lxml import etree as ET +import xml.etree.ElementTree as ET#from lxml import etree as ET from matplotlib import pyplot, transforms import matplotlib.patches as mpatches import imutils @@ -1254,7 +1254,7 @@ class eynollah: for mv in range(len(boxes_text)): - crop_img,crop_coor=self.crop_image_inside_box(boxes_text[mv],image_page_rotated) + crop_img,crop_coor=crop_image_inside_box(boxes_text[mv],image_page_rotated) #all_box_coord.append(crop_coor)