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)