Facing "'recognitionModel' is invalid." error in face detection API

OnGrid Tech 1 Reputation point
2020-10-14T13:26:51.767+00:00

I am receiving following error while invoking face detect api with "recognition_03" model.. I even tried using the cognitive services API console..

{
"error": {
"code": "BadArgument",
"message": "'recognitionModel' is invalid."
}
}

recognition_02 and recognition_01 work fine...

EDIT----

I am currently exploring the service in the Free tier.
Here's my complete request and response

request ->
`POST https://centralindia.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&recognitionModel=recognition_03&returnRecognitionModel=true&detectionModel=detection_02 HTTP/1.1
Host: centralindia.api.cognitive.microsoft.com
Content-Type: application/json
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••

{
"url": "https://i.ytimg.com/vi/xnPerbLGPPk/maxresdefault.jpg"
}`

response ->

`Pragma: no-cache
apim-request-id: a5295b49-6321-48c4-9d7c-263ffd9c75b1
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
CSP-Billing-Usage: CognitiveServices.Face.Transaction=1
Cache-Control: no-cache
Date: Thu, 15 Oct 2020 04:37:26 GMT
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 75
Content-Type: application/json; charset=utf-8
Expires: -1

{
"error": {
"code": "BadArgument",
"message": "'recognitionModel' is invalid."
}
}`

Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
162 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,824 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. YutongTie-MSFT 51,256 Reputation points
    2020-10-15T00:08:04.917+00:00

    Hello,

    Thanks for reaching out to us. I tried to reproduce your issue but this API worked for me well as below. Could you please try again and share which tier you are using for reference? Thanks.

    32369-image.png

    Regards,
    Yutong


  2. YutongTie-MSFT 51,256 Reputation points
    2020-10-23T22:47:27.117+00:00

    Hello,

    Sorry for your experiences and the delay. I just confirmed that recognition_03 model haven't deployed to central India region at this moment, please change to another region. We are working on that, please keep eyes on it. Thanks.

    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.