Azure Face Detection does not retrieve all images in a large iteration

Lucy Doan 1 Reputation point
2020-09-20T03:19:10.633+00:00

Hi everyone,

I am using Azure Face detection service and the issue I am encountering is related to iteration larger than 1000. Because I have a large number of images to retrieve information, I need to iterate them. However, whenever I iterate a large number, let's say 1000 images, I recognized that only a few of the images were retrieved of information. There is no error message shown.

How can I know it didn't read all images? When I manually input some of the images that weren't retrieved through a previous iteration, this time they were retrieved!

FYI, I haven't reached the transaction limit for my account. I'm also aware of the rate limit - 20 calls per minute, that's why I set 10 seconds after each call.

I will appreciate it if anyone has any thought or suggestion to solve this problem. Thank you so much!!

Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
165 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lucy Doan 1 Reputation point
    2020-09-21T14:49:52.067+00:00

    Hi @romungi-MSFT - Thank you for your comment. Yes I did recorded the data in a json file after making sure a whole iteration were successfully retrieved.

    Please find as below the screenshot of my code. I'm sorry I cannot copy paste the whole text; whenever I try to submit my comment with the text, it shows the error as "WAF v2 has determined your request exceeded the normal web request and has blocked your request."

    26116-26cf2746-b9c0-4e08-80a0-044a944e29de-4-5005-c.jpeg

    On a side note, I use the exception for the above errors to avoid invalid images


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.