Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check if the ultra wide video format is available.
- // If so, set it on a face tracking configuration & run the session with that.
- let config = ARFaceTrackingConfiguration()
- for videoFormat in ARFaceTrackingConfiguration.supportedVideoFormats {
- if videoFormat.captureDeviceType == .builtInUltraWideCamera {
- config.videoFormat = videoFormat
- break
- }
- }
- session.run(config)
Advertisement
Add Comment
Please, Sign In to add comment