Share via

error while running the python code for the face recognition

Stefanos C. Eleftheriadis 0 Reputation points
2024-02-22T18:59:40.77+00:00

python quickstart.py  
Person group: fff09afd-a3ad-4a45-8cf5-508ff79ca91e
Traceback (most recent call last):
 File "/home/zack/Documents/coding/Face_recognition/quickstart.py", line 43, in <module>
   face_client.person_group.create(person_group_id=PERSON_GROUP_ID, name=PERSON_GROUP_ID, recognition_model='recognition_04')
 File "/home/zack/myenv/lib/python3.11/site-packages/azure/cognitiveservices/vision/face/operations/_person_group_operations.py", line 121, in create
   raise models.APIErrorException(self._deserialize, response)
azure.cognitiveservices.vision.face.models._models_py3.APIErrorException: (InvalidRequest) Invalid request has been sent.

this is the output I received why I run the code

Azure Face
Azure Face

An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


1 answer

Sort by: Most helpful
  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2024-02-27T05:53:16.05+00:00

    @Stefanos C. Eleftheriadis Is your subscription whitelisted to use sensitive features of the Face API? Please submit this form if you have not whitelisted to use the same. 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.