APIErrorException: (InvalidImageSize)

Vijey Rohan Munuswamy Sumithra 5 Reputation points
2023-09-21T07:29:01.9333333+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 can only train upto 5 or 6 students at a time and get the output with the students name with the confidence level at the cctv feeds. If i increase the No. of students more than 6 or 7 i am getting error as "InvalidImageSize" even of the students photo that worked fine previously.
"azure.cognitiveservices.vision.face.models._models_py3.APIErrorException: (InvalidImageSize) Image size is too small." but images size seems fine as it is given in microsoft website. I am using free version from azure. Thank you in advance

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

1 answer

Sort by: Most helpful
  1. Azar 22,870 Reputation points MVP
    2023-09-23T10:14:22.76+00:00

    Hi @Vijey Rohan Munuswamy Sumithra

    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.


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.