mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-04-30 19:22:03 +02:00
.
This commit is contained in:
parent
69280187c5
commit
abdcb1a1f9
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue