Facing Invalid Image URL Error while Consuming Face detection API

2020-08-12T15:53:41.513+00:00

Keys are the same as the resource am using.
I Try to cross-check on your provided page but Now I get below mention error.
Request:
POST https://FaceAPIDemoProject.cognitiveservices.azure.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&recognitionModel=recognition_01&returnRecognitionModel=false&detectionModel=detection_01 HTTP/1.1
Host: FaceAPIDemoProject.cognitiveservices.azure.com
Content-Type: application/json
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••
{
"url":"https://drive.google.com/file/d/1LtHrXkxXa7ON33_E8Lxpa-DwNnTS-vtI/view?usp=sharing"
}
Response:
x-envoy-upstream-service-time: 625
apim-request-id: 64ff3a2d-f74e-4254-bba5-682e99237000
Strict-Transport-Security: max-age=31536000;
CSP-Billing-Usage: CognitiveServices.Face.Transaction=1
Content-Type: application/json; charset=utf-8
"error": {
"code": "InvalidImage",
"message": "Decoding error, image format unsupported."
}
Is anything wrong with my ImageURL

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

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,161 Reputation points
    2020-08-12T22:39:37.117+00:00

    Thanks for reaching out. The error doesn't have anything to do with the key. I tried using a sample bing image url and it works fine. It seems your url is invalid, it should look like this:

    17210-image.png

    0 comments No comments