ARCore Augmented Face Session.
Class is used to take in a series of
CVPixelBufferRefs and outputs a 3D Face Mesh for the detected face.
|(instancetype _Nullable)||- initWithFieldOfView:error:|
|Initializes a GARAugmentedFaceSession with the camera's field of view. More...|
|Provides the Face Mesh API with a new pixel buffer so it will capture a face frame. More...|
|The most recent frame created from calling updateWithPixelBuffer:timestamp:recognitionRotation: More...|
< GARAugmentedFaceSessionDelegate >
|Delegate that receives callbacks from the face session. More...|
|The dispatch queue through which the face session calls your delegate methods. More...|
|- (instancetype _Nullable) initWithFieldOfView:||(float)||fieldOfView|
Initializes a GARAugmentedFaceSession with the camera's field of view.
fieldOfView The camera device's horizontal field of view in degrees. error Out parameter for an NSError. Possible errors: GARAugmentedFaceSessionErrorCodeDeviceNotCompatible - this device or OS version is not currently supported.
- An initialized GARAugmentedFaceSession or
nilif there is an error.
|- (BOOL) updateWithPixelBuffer:||(CVPixelBufferRef)||pixelBuffer|
Provides the Face Mesh API with a new pixel buffer so it will capture a face frame.
CVPixelBufferRefcontaining camera image.
timestamp Timestamp that you wish to associate with this image. Timestamps must monotonically increase on successive calls to this method. recognitionRotation The counter-clockwise rotation in degrees required to orient the face upwards for face detection. NOTE: The default camera orientation is landscape left. When holding the phone in portrait and taking a selfie this should be set to 270. The 270 degree rotation rotates a landscape camera image to portrait with the head pointing up.
YESif the frame was accepted for processing.
NOif the frame was not accepted for processing. This will occur when the session has too many frames in the queue to process.
The most recent frame created from calling updateWithPixelBuffer:timestamp:recognitionRotation:
Delegate that receives callbacks from the face session.
The dispatch queue through which the face session calls your delegate methods.