mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-06 14:39:55 +02:00
debug new page extraction in the case of ignoring page extraction
This commit is contained in:
parent
310679eeb8
commit
994bc8a1c0
1 changed files with 6 additions and 5 deletions
|
@ -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,))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue