You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applying FROC to text line images that are too small (I didn't quantify the exact threshold) leads to different kinds of issues.
Within the NN, the pooling operation can break due to insufficient height/width.
ValueError during image resizing with pillow.
While providing proper image sizes might also be a responsibility of previous processors, an initial check for valid image dimensions before further processing in FROC might make sense.
I've attached two screenshots.
The text was updated successfully, but these errors were encountered:
Thanks for the report. I only wrote the OCR-D wrapper, this bug seems to be part of the implementation in froc.py, so you probably understand the code better than I do - can you provide a PR?
Applying FROC to text line images that are too small (I didn't quantify the exact threshold) leads to different kinds of issues.
While providing proper image sizes might also be a responsibility of previous processors, an initial check for valid image dimensions before further processing in FROC might make sense.
I've attached two screenshots.
The text was updated successfully, but these errors were encountered: