-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: OcropyClip: TypeError: function takes exactly 1 argument (2 given) #72
Comments
Thanks for the report! Looks like this is related to this SO issue around this GH issue of Pillow. Which version do you have? ( |
BTW your workflow has a flaw: You cannot use clipping after any processor that already adds derived images ( ocrd_cis/ocrd_cis/ocropy/clip.py Lines 77 to 79 in a6f90ab
...and so the processor won't actually do anything but print warnings... ocrd_cis/ocrd_cis/ocropy/clip.py Lines 152 to 155 in a6f90ab
I have updated the workflow guide wiki page to better reflect this. (I distinctly remember documenting this elsewhere already, though...) EDIT So I would recommend exchanging the order with the region-level deskewing. Also, you don't need clipping on the line level if you already apply resegmentation. The latter can be seen as an alternative method (based on coordinates instead of image data). For full clarification about both operations including screenshots, I recommend these slides (and follow-up). |
|
Workflow has been generated by script according to https://ocr-d.de/en/workflows (as of ~ 2020-06). |
this two lines?
But it's still here: https://ocr-d.de/en/workflows Step 9 + 10 |
Yes, sorry, did not spot it there the first time. I have updated my issue on the recommendations. |
7.2.0 should have the fix IIUC. I am still trying to reproduce. It definitely depends on the image's color mode (16/32 bit integer or float are probably the culprit). Getting back to you when I tried with such an image. |
No luck here. Tried with 8+1, with 16 bit and 32 bit images. Could you please share the image it failed on? |
Sent an email with link to images. |
Thanks – I could reproduce. You helped find a bug again! Fix is in #75 |
Workflow:
Log:
The text was updated successfully, but these errors were encountered: