debug new page extraction in the case of ignoring page extraction

This commit is contained in:
vahidrezanezhad 2025-09-19 15:24:34 +02:00 committed by kba
parent 310679eeb8
commit 994bc8a1c0

View file

@ -3065,6 +3065,7 @@ class Eynollah:
if self.plotter:
self.plotter.save_page_image(image_page)
if not self.ignore_page_extraction:
mask_page = np.zeros((text_regions_p_1.shape[0], text_regions_p_1.shape[1])).astype(np.int8)
mask_page = cv2.fillPoly(mask_page, pts=[cont_page], color=(1,))