APIErrorException: (InvalidImageSize)

Vijey Rohan Munuswamy Sumithra 5 Reputation points
2023-09-25T13:09:23.95+00:00

I am working on face recognition using azure face Api.

I have two sets of data.

1, students data(contain one images of per student I have 100 students total)

2, CCTV frames data(contains photos of CCTV feeds that has students faces I have 10 frames).

I am supposed to train students data and test on CCTV frames data.

I was only able to train up to 5 or 6 students at a time using free tier (F0) and get the output with the students name with the confidence level at the CCTV feeds images. If i increase the No. of students more than 6 or 7 i am getting error as "InvalidImageSize" even for the student's photo that worked fine previously.

So I have raised concern in Q&A and got a response stating to increase my tier. So I raised my free tier to Standard tier and now I was able to train 70 faces at a time. If I increase more than 70 faces I am getting the same error stating

"APIerror-InvalidImageSize". I want to train more than 70 is there any solution. Please help. Thank you in advance.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
643 questions
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,570 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,436 questions
Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
152 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Azar 19,245 Reputation points
    2023-09-25T19:33:11.2066667+00:00

    Hi @Vijey Rohan Munuswamy Sumithra

    I think this problem is fixed in case not kindly go through the answer and Accept if you find t usefull.

    The "InvalidImageSize" error you are encountering in the Azure Face API is likely due to the images being processed not meeting the minimum size requirements for face detection. In the free tier of Azure Face API, there are certain limitations, including image size restrictions. While the official documentation may specify the recommended image size

    If you consistently need to process a larger number of images and require higher API limits, you may consider upgrading your Azure subscription to a higher tier that offers more quotas.

    Kindly accept the answer if this helps thanks much.

    0 comments No comments