AVMetadataFaceObject yawAngle is opposite for iPad Air and iPhone XS MAX

The app get a yawAngle with the front camera.

When I looking at the left.

iPad Air yawAngle is 270 or 315

iPhone XS MAX yawAngle is 45 or 90


When I looking at the right

iPad Air yawAngle is 45 or 90

iPhone XS MAX yawAngle is 270 or 315


What is the reason for above results ?

Both devices use iOS 12, and the app is using in portrate orientation only.

Replies

I found if device has Multisession support then that opposite yaw angle happened.

So you can check the device using


AVCaptureMultiCamSession.isMultiCamSupported


If AVCaptureMultiCamSession.isMultiCamSupported == true then it is iPhone XS XR XS Max ... and later

else it is from iPhone X earlier


Hope this helps