Face recognition API code does not work

Konrad Liuras 1 Reputation point
2022-11-02T01:07:30.42+00:00

I'm trying to get started with exercises for my uni classes, for which we were told to use Face Recognition API from azure in order to train and then test the accuracy of the recognition system. I've created a new Face Recognition API resource, added myself as a Cognitive Services collaborator (role assigned), and according to the "quick start guide":

https://learn.microsoft.com/en-us/azure/cognitive-services/computer-vision/quickstarts-sdk/identity-client-library?tabs=visual-studio&pivots=programming-language-python

I should be able to use the code below, but I fail to execute the code from the example.

After the line with creating a new person_group I receive an exception:

azure.cognitiveservices.vision.face.models._models_py3.APIErrorException: (InvalidRequest) Invalid request has been sent

I have a license to Azure from my University and I'd like to know if there is any chance for me to use this feature.

Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
165 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,897 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,741 Reputation points
    2022-11-02T16:16:10.45+00:00

    @Konrad Liuras Thanks for the question. Did you submit the intake form?. Face service access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. Face service is only available to Microsoft managed customers and partners. Use the Face Recognition intake form to apply for access.

    0 comments No comments

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.