Provides the Face Mesh API with a new pixel buffer so it will capture a face frame.
Details
Parameters
pixelBuffer
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.
Returns
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eGARAugmentedFaceSession\u003c/code\u003e processes camera images (\u003ccode\u003eCVPixelBufferRef\u003c/code\u003es) to generate 3D face meshes.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a \u003ccode\u003ecurrentFrame\u003c/code\u003e property containing the most recent face data and a delegate for receiving updates.\u003c/p\u003e\n"],["\u003cp\u003eYou initialize it with the camera's field of view and feed it images with \u003ccode\u003eupdateWithPixelBuffer:timestamp:recognitionRotation:\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe session requires the camera image, a timestamp, and a rotation value for accurate face detection.\u003c/p\u003e\n"]]],["The `GARAugmentedFaceSession` class processes `CVPixelBufferRef` inputs to output a 3D face mesh. Key actions involve initializing the session with `initWithFieldOfView:error:` using the camera's field of view, and updating it with `updateWithPixelBuffer:timestamp:recognitionRotation:` to capture face frames. The `currentFrame` property holds the latest processed frame, and a `delegate` with a `delegateQueue` handles callbacks. Input frames are processed when they are accepted.\n"],null,[]]