|
|
@ -30,7 +30,7 @@ warnings.filterwarnings("ignore")
|
|
|
|
from scipy.signal import find_peaks
|
|
|
|
from scipy.signal import find_peaks
|
|
|
|
from scipy.ndimage import gaussian_filter1d
|
|
|
|
from scipy.ndimage import gaussian_filter1d
|
|
|
|
from shapely import geometry
|
|
|
|
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
|
|
|
|
from matplotlib import pyplot, transforms
|
|
|
|
import matplotlib.patches as mpatches
|
|
|
|
import matplotlib.patches as mpatches
|
|
|
|
import imutils
|
|
|
|
import imutils
|
|
|
@ -1254,7 +1254,7 @@ class eynollah:
|
|
|
|
|
|
|
|
|
|
|
|
for mv in range(len(boxes_text)):
|
|
|
|
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)
|
|
|
|
#all_box_coord.append(crop_coor)
|
|
|
|
|
|
|
|
|
|
|
|