ocropus-archive / DUP-ocropy

Python-based tools for document analysis and OCR
Apache License 2.0
3.41k stars 590 forks source link

I get bad scaling issues #328

Open SumanthAmpcus opened 5 years ago

SumanthAmpcus commented 5 years ago

I receive the following error all the time.

bad scale (nan); skipping This is not an issue. I am not able to figure out how to set the scaling parameter for the image.In your code it says the scaling has to be 12.0.

Following are my images . For my application , usually the image input will be of this size. Raleway-Black-Black-Image-3 Walkway_Oblique_Black-Black-Image-5 Raleway-Black-Black-Image-5 Raleway-Black-Black-Image-4

Please point me in the direction how to resolve this issue.

zuphilip commented 5 years ago

Can you please give some more information:

amitdo commented 5 years ago

I am not able to figure out how to set the scaling parameter for the image.In your code

run ocropus-gpageseg with --minscale 14.0

14.0 is just an example.