GARAugmentedFaceSession
ARCore Augmented Face Session.
Class is used to take in a series of CVPixelBufferRef
s and outputs a 3D Face Mesh for the detected face.
Summary
Inheritance
Inherits from:NSObject
Properties |
|
---|---|
currentFrame
|
The most recent frame created from calling
updateWithPixelBuffer:timestamp:recognitionRotation: . |
delegate
|
Delegate that receives callbacks from the face session.
|
delegateQueue
|
dispatch_queue_t
The dispatch queue through which the face session calls your delegate methods.
|
Public methods |
|
---|---|
initWithFieldOfView:
|
instancetype _Nullable
Initializes a
GARAugmentedFaceSession with the camera's field of view. |
updateWithPixelBuffer:
|
BOOL
Provides the Face Mesh API with a new pixel buffer so it will capture a face frame.
|
Properties
currentFrame
@property(atomic, readonly, nullable) GARAugmentedFaceFrame *currentFrame;
The most recent frame created from calling updateWithPixelBuffer:timestamp:recognitionRotation:
.
delegate
@property(atomic, weak, nullable) iddelegate;
Delegate that receives callbacks from the face session.
delegateQueue
@property(atomic, nullable) dispatch_queue_t delegateQueue;
The dispatch queue through which the face session calls your delegate methods.
Public methods
initWithFieldOfView:error:
- (instancetype _Nullable)initWithFieldOfView:(float) fieldOfViewerror:(NSError **) error
Initializes a GARAugmentedFaceSession
with the camera's field of view.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
An initialized
GARAugmentedFaceSession or nil if there is an error. |
updateWithPixelBuffer:timestamp:recognitionRotation:
- (BOOL)updateWithPixelBuffer:(CVPixelBufferRef) pixelBuffertimestamp:(NSTimeInterval) timestamprecognitionRotation:(NSUInteger) recognitionRotation
Provides the Face Mesh API with a new pixel buffer so it will capture a face frame.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns |
YES if the frame was accepted for processing. NO if the frame was not accepted for processing. This will occur when the session has too many frames in the queue to process. |