Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can AVFoundation face detection locate eyes and mouth position?

when using CoreImage face detection I get CIFaceFeature object that have eyes and mouth position properties. When using AVFoundation with AVMetadataObjectTypeFace as metadataObjectTypes i get AVMetadataFaceObject that have yaw and roll angle properties.

There is a way to get eyes and mouth position when using AVFoundation?

Thank you

like image 304
lucianoenrico Avatar asked Oct 22 '22 04:10

lucianoenrico


1 Answers

Mouth and eye positions are not returned by the AVFoundation face detection. However the positions of mouths and eyes relative to the bounding box do not vary that much. For example, I have found that the eyes are nearly always positioned at:

  • (0.3*faceWidth, 0.3*faceHeight)
  • (0.7*faceWidth, 0.3*faceHeight)

I'm sure the same is true for the mouth.

like image 98
ronomal Avatar answered Oct 30 '22 02:10

ronomal