A configuration you use when you just want to track faces using the device's front camera.
SDK
- iOS 11.0+
Framework
- ARKit
Declaration
@interface ARFaceTrackingConfiguration : ARConfiguration
Overview
A face tracking configuration detects the faces that can be seen in the device’s front camera feed. When ARKit detects a face, it creates an ARFace
object that provides information about the face’s position and orientation, its topology, and features that describe facial expressions.
Important
Face tracking is available only on iOS devices with a front-facing TrueDepth camera (see iOS Device Compatibility Reference). Use the ARFace
is
property to determine whether face tracking is available on the current device before offering the user any features that require face tracking.
The ARFace
class provides no methods or properties, but supports all properties inherited from its superclass ARConfiguration
. Additionally, when you enable the light
setting, a face tracking configuration uses the detected face as a light probe and provides an estimate of directional or environmental lighting (an ARDirectional
object).
Note
Face tracking provides your app with personal facial information. If you use ARKit face tracking features, your app must include a privacy policy describing to users how you intend to use face tracking and face data. For details, see the Apple Developer Program License Agreement.