Getting a preview of the image passed to Computer Vision

Javi Guarin 20 Reputation points
2024-08-20T05:42:18.96+00:00

Is there a way to see the image that was passed to Azure Computer Vision?

I've passed an image from Android CameraX ImageAnalysis (ImageProxy) but I keep getting a 400 Bad Request response, saying: The image size is not allowed to be zero or larger than 20971520 bytes.

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

Accepted answer
  1. romungi-MSFT 44,771 Reputation points Microsoft Employee
    2024-08-20T10:35:37.29+00:00

    @Javi Guarin If you have passed a request programmatically then there is no option to display the preview of image passed to the service, it will only send the response depending on how the image is processed.

    The analyze image API uses either the URL of the image or stream, if you use URL of image, you can see the preview by loading the URL separately. If you use stream, you will have to build the image from stream that was passed in request body.

    If you are able to download the same image taken from this source, you can upload it through vision studio and check if there is any preview seen. Vision studio provides a preview of image before you submit the image, the final response though is still based on how the service Api sees the request body. Thanks!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

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.