How to measure device distance from face with help of ARKit in iOS?
问题 I need to create a application in which we want to measure distance between device and my user face. I think its possible by ARKit but don't know how to do it. Is there any kind of sample or example? 回答1: If you are running an ARFaceTrackingConfiguration (only for devices with a front-facing TrueDepth camera), there are at least two ways to achieve this (I think the second one is the better). First method You can use the depthData of the IR camera : yourARSceneView.session.currentFrame?