Guest User

OrangeLoops

a guest
Jun 10th, 2021
2,780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.40 KB | None | 0 0
  1. // Check if the ultra wide video format is available.
  2. // If so, set it on a face tracking configuration & run the session with that.
  3.  
  4. let config = ARFaceTrackingConfiguration()
  5. for videoFormat in ARFaceTrackingConfiguration.supportedVideoFormats {
  6.     if videoFormat.captureDeviceType == .builtInUltraWideCamera {
  7.         config.videoFormat = videoFormat
  8.         break    
  9.     }
  10. }
  11. session.run(config)
Advertisement
Add Comment
Please, Sign In to add comment