Face Detection in rotate images

Pierluigi Colombo 21 Reputation points
2021-04-07T15:14:09.96+00:00

Hi,
i'm trying to use 2 services of the face Api:

  • Face Detection
  • Face Verification

In a test I have noted that no face are detected if the face image is rotated of 90°.
Do I need to rotate to myself the image in the correct position before the analysis of the Face Cognitive Service?

Thanks
Pierluigi

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

Accepted answer
  1. YutongTie-MSFT 46,996 Reputation points
    2021-04-08T01:39:10.28+00:00

    Hello,

    Yes, you need. When you know the direction of the face, you can rotate the rectangular face frame to align it more properly. To crop faces in an image, you can programmatically rotate the image so that the faces always appear upright. More details please refer to the document to address the landmark.

    How to detect head posture: https://learn.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/how-to-use-headpose#explore-the-sample-code

    https://learn.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/howtodetectfacesinimage#get-face-landmarks

    Regards,
    Yutong


0 additional answers

Sort by: Most helpful