Face Recognation API

05065644 0 Reputation points
2024-12-12T04:43:38.1366667+00:00

Hii Team,

I am creating Angular application with Azure Face API. I am facing 403 and 404 error. Please give me correct end point.

I have provide sample code

axios.post('https://eastus.api.cognitive.microsoft.com/face/v1.0/detect', frame, {

      headers: {

        'Content-Type': 'application/octet-stream',

        'Ocp-Apim-Subscription-Key': 'tLP1uvZALgrxnzFs0q9NNANoN0vfCWtlhr0LoJctaGQw8j2USpHTJQQJ99ALACYeBjFXJ3w3AAAKACOGtq4J',

      },

      params: {

        returnFaceAttributes: 'age,gender,smile,glasses',

        returnFaceLandmarks: 'true',

      },

    })

If it is correct then why i am getting a error also i am use https://faceapiforangular.cognitiveservices.azure.com/ this endpoint please correct this and help

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

1 answer

Sort by: Most helpful
  1. santoshkc 11,535 Reputation points Microsoft Vendor
    2024-12-12T13:02:59.5166667+00:00

    Hi @05065644,

    Did you get a chance to review this guide? Azure Computer Vision Quickstart - Identity Client Library. It provides detailed steps for setting up authentication and using the REST API with the correct endpoint. Ensure that your endpoint matches the region of your Azure resource, and the subscription key is valid. This may help resolve the 403 and 404 errors you're facing.

    Also, you can refer: Face REST API reference.

    I hope this helps. Thank you.

    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.