InvalidImageSize error for 9600x7200 size image

Pranav_Annapareddy 21 Reputation points
2021-04-29T21:46:25.227+00:00

Hi, we are a small team trying to extract data from engineering drawings using Python (These diagrams are fairly dense with lines with sparse information). We have encountered an error where the HTTP error code we get for our request is 400 when sending the whole raw image but breaking the image into smaller chunks seems to work.

My question is why does the error prompt for a file of this resolution, which is within the 10000x10000 limit? If it has to do with the file size (storage), I have noticed the same error on a similar resolution image but a smaller size (https://i.redd.it/dp0j5cjx76d51.jpg)

{'code': 'InvalidImageSize',
'requestId': '********************************',
'message': 'The height or width of the image is outside the supported range.'}

Please let me know if the code is required.

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
381 questions
0 comments No comments
{count} votes

Accepted answer
  1. GiftA-MSFT 11,171 Reputation points
    2021-04-30T19:00:42.913+00:00

    Hi, what API and version are you using? Can you verify using the Analyze Image API v3.2 reference? Using the sample url that you provided, I was able to make a successful request. Regarding file size, ensure that the file size is less than 4MB. If you are using OCR API, image dimensions must be between 50 x 50 and 4200 x 4200 pixels, and the image cannot be larger than 10 megapixels.

    92930-image.png
    93041-image.png


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.