Stay organized with collections
Save and categorize content based on your preferences.
GARAugmentedFace
Object that holds face mesh and transform data for detected face.
Summary
Inheritance
Inherits from:
NSObject
Properties
|
centerTransform
|
simd_float4x4
The transform from camera to the center of the face, defined to have the origin located behind the nose and between the two cheek bones.
|
mesh
|
3D mesh representation of detected face.
|
Properties
The transform from camera to the center of the face, defined to have the origin located behind the nose and between the two cheek bones.
+Z is forward out of the nose, +Y is upwards, and +X is towards the face's left. The units are in meters.
mesh
3D mesh representation of detected face.
Public methods
- (simd_float4x4)transformForRegion:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eGARAugmentedFace\u003c/code\u003e provides face mesh and transform data for detected faces in AR experiences.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a 3D mesh representation (\u003ccode\u003emesh\u003c/code\u003e) of the detected face for detailed rendering.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecenterTransform\u003c/code\u003e offers the transform from the camera to the center of the face, positioned behind the nose.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003etransformForRegion:\u003c/code\u003e to get the transform for specific face regions like the nose or forehead.\u003c/p\u003e\n"]]],["`GARAugmentedFace` stores face data, inheriting from `NSObject`. It provides the `centerTransform`, a `simd_float4x4` matrix defining the transform from the camera to the face's center, positioned behind the nose. It also contains `mesh`, a 3D representation of the detected face. A public method, `transformForRegion:`, allows retrieving a `simd_float4x4` transform from the camera to a specific `GARAugmentedFaceRegionType` region.\n"],null,["# GARAugmentedFace Class Reference\n\nGARAugmentedFace\n================\n\nObject that holds face mesh and transform data for detected face.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `NSObject`\n\n| ### Properties ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [centerTransform](#centertransform) | `simd_float4x4` The transform from camera to the center of the face, defined to have the origin located behind the nose and between the two cheek bones. |\n| [mesh](#mesh) | [GARAugmentedFaceMesh](/ar/reference/ios/interface/GARAugmentedFaceMesh#interface_g_a_r_augmented_face_mesh)` *` 3D mesh representation of detected face. |\n\n| ### Public methods ||\n|---------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [transformForRegion:](#transformforregion:) | `simd_float4x4` Transform from camera to to specified [GARAugmentedFaceRegionType](/ar/reference/ios/group/GARAugmentedFaceRegionType#garaugmentedfaceregiontype) region. |\n\nProperties\n----------\n\n### centerTransform\n\n```transact-sql\n@property(nonatomic, readonly) simd_float4x4 /ar/reference/ios/interface/GARAugmentedFace#centertransform;\n``` \nThe transform from camera to the center of the face, defined to have the origin located behind the nose and between the two cheek bones.\n\n+Z is forward out of the nose, +Y is upwards, and +X is towards the face's left. The units are in meters. \n\n### mesh\n\n```transact-sql\n@property(nonatomic, readonly) /ar/reference/ios/interface/GARAugmentedFaceMesh#interface_g_a_r_augmented_face_mesh */ar/reference/ios/interface/GARAugmentedFace#mesh;\n``` \n3D mesh representation of detected face.\n\nPublic methods\n--------------\n\n### transformForRegion:\n\n```verilog\n- (simd_float4x4)transformForRegion: \n(/ar/reference/ios/group/GARAugmentedFaceRegionType#garaugmentedfaceregiontype) regionType\n``` \nTransform from camera to to specified [GARAugmentedFaceRegionType](/ar/reference/ios/group/GARAugmentedFaceRegionType#garaugmentedfaceregiontype) region."]]