mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-04-30 19:22:03 +02:00
.
This commit is contained in:
parent
abdcb1a1f9
commit
d705f855f1
2 changed files with 1 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ class Eynollah_ocr:
|
|||
w_scaled = w * image_height/float(h)
|
||||
|
||||
img_poly_on_img = np.copy(img)
|
||||
if img_bin:
|
||||
if img_bin is not None:
|
||||
img_poly_on_img_bin = np.copy(img_bin)
|
||||
img_crop_bin = img_poly_on_img_bin[y:y+h, x:x+w, :]
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ class EynollahRecognizeProcessor(Processor):
|
|||
page.get_Page(), page_file.pageId,
|
||||
feature_selector="binarized")
|
||||
img_bin = pil2cv(page_image_bin)
|
||||
print(img_bin)
|
||||
result = self.eynollah_ocr.run_cnn(
|
||||
img=img,
|
||||
page_tree=page.etree.getroottree(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue