This commit is contained in:
kba 2026-04-28 15:33:57 +02:00
parent 69280187c5
commit abdcb1a1f9

View file

@ -64,12 +64,14 @@ class EynollahRecognizeProcessor(Processor):
page_image_bin, _, _ = self.workspace.image_from_page( page_image_bin, _, _ = self.workspace.image_from_page(
page.get_Page(), page_file.pageId, page.get_Page(), page_file.pageId,
feature_selector="binarized") feature_selector="binarized")
img_bin = pil2cv(page_image_bin)
print(img_bin)
result = self.eynollah_ocr.run_cnn( result = self.eynollah_ocr.run_cnn(
img=img, img=img,
page_tree=page.etree.getroottree(), page_tree=page.etree.getroottree(),
page_ns=page_ns, page_ns=page_ns,
img_bin=pil2cv(page_image_bin), img_bin=img_bin,
image_width=512, image_width=512,
image_height=32, image_height=32,
) )