Error image dimensions

Hello,

When I developped my application, which use the OCR API, I encountered a bug saying that image shouldn’t have dimensions larger than 50 000px.
So I developped something in order to have image < 50 000px.

Now I have the same error, but saying that image shouldn’t have dimensions larger than 10 000px.

Dec 07 15:40:15 bash[29226]: ParsedResults: [
Dec 07 15:40:15 bash[29226]: {
Dec 07 15:40:15 bash[29226]: FileParseExitCode: -10,
Dec 07 15:40:15 bash[29226]: ParsedText: ‘’,
Dec 07 15:40:15 bash[29226]: ErrorMessage: ‘Parsing Error: Image dimensions are too large! Max image dimensions supported: 10000 x 10000.’,
Dec 07 15:40:15 bash[29226]: ErrorDetails: ‘Image dimensions are too large! Max image dimensions supported: 10000 x 10000.’
Dec 07 15:40:15 bash[29226]: }
Dec 07 15:40:15 bash[29226]: ]

So my question is: did you change the API about that ?

Thanks

OCR Engine 1: The limit is 10000px width. The image length for OCR engine1 can be longer.

OCR Engine 2: Image size limit 5000px width and 5000px height

These values did not change in 2020.

Ok thanks you, do you have any number for max height of images ?

Engine1: Unlimited
Engine2: 5000px

Thanks for your answer.

In fact, I got this error with an image which has dimensions smaller than 10000x10000.

image

I’m stuck :confused:

Important: For images that are more than 50% of the max size, make sure that you use the parameter scale=false. Otherwise the upscaling pushes the image dimensions beyond the image size limit. The scale=true parameter improves the OCR results for small and low DPI images only.

If you still get the issue with scale=false, please provide this image for testing and we will check this ASAP.

See also Difference between online OCR and OCR API? - #2 by admin

1 Like

That was my problem, thanks for your help