Does FACE API 'emotion' work?

N-yokoya N-yokoya 0 Reputation points
2023-11-11T02:00:13.29+00:00

face_client.face.detect_with_stream( img, return_face_attributes=['emotion'] )

This is python method for using FACE API. When you used this method recently, please send me the total code. FACE API 'emotion' doesn't work.

'pip install --upgrade azure-cognitiveservices-vision-face' was already done.

CHAT_GPT suggests some version error between FACE API and SDK.

On azure key and endpoint was already set.

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. YutongTie-MSFT 52,776 Reputation points
    2023-11-13T01:22:30.4866667+00:00

    @N-yokoya N-yokoya Thanks for reaching out to us, I hope you are aware of below notice -

    Microsoft has retired facial recognition capabilities that can be used to try to infer emotional states and identity attributes which, if misused, can subject people to stereotyping, discrimination or unfair denial of services. These include capabilities that predict emotion, gender, age, smile, facial hair, hair and makeup. Read more about this decision here.

    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. For more information, see the Face limited access page.

    I think this maybe the reason it's not working for you. I hope this helps.

    Regards,

    Yutong

    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.