From f41cd58550da79425a32ed0841b6312dea8e0255 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Mon, 22 Mar 2021 15:44:04 +0100 Subject: [PATCH] extract page_image also for operation_level region --- sbb_binarize/ocrd_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbb_binarize/ocrd_cli.py b/sbb_binarize/ocrd_cli.py index 7f88dfc..1650e02 100644 --- a/sbb_binarize/ocrd_cli.py +++ b/sbb_binarize/ocrd_cli.py @@ -74,10 +74,10 @@ class SbbBinarizeProcessor(Processor): self.add_metadata(pcgts) pcgts.set_pcGtsId(file_id) page = pcgts.get_Page() + page_image, page_xywh, _ = self.workspace.image_from_page(page, page_id, feature_filter='binarized') if oplevel == 'page': LOG.info("Binarizing on 'page' level in page '%s'", page_id) - page_image, page_xywh, _ = self.workspace.image_from_page(page, page_id, feature_filter='binarized') bin_image = cv2pil(binarizer.run(image=pil2cv(page_image), use_patches=True)) # update METS (add the image file): bin_image_path = self.workspace.save_image_file(bin_image,