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.
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,895 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,751 Reputation points Microsoft Employee
    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 Answers by the question author, which helps users to know the answer solved the author's problem.