GARAugmentedFaceFrame
Object that holds all relevant information for an Augmented Faces frame during which face detection was run.
Summary
Inheritance
Inherits from:NSObject
Properties |
|
---|---|
capturedImage
|
CVPixelBufferRef
A buffer containing the image that was input to
GARAugmentedFaceSession . |
face
|
Contains a
GARAugmentedFace if a face is detected in this frame, otherwise nil . |
timestamp
|
NSTimeInterval
The time at which the frame was captured.
|
Public methods |
|
---|---|
displayTransformForViewportSize:
|
CGAffineTransform
A transform that converts between image coordinates and coordinate space for displaying 2D content on screen that is aligned with the AR rendered content.
|
projectionMatrixForViewportSize:
|
simd_float4x4
A 3D projection matrix that will result in the correct alignment of AR rendered content on top of the captured camera image.
|
Properties
timestamp
The time at which the frame was captured.
This is simply the timestamp passed into updateWithPixelBuffer:timestamp:recognitionRotation: (GARAugmentedFaceSession)
.
Public methods
displayTransformForViewportSize:presentationOrientation:mirrored:
- (CGAffineTransform)displayTransformForViewportSize:(CGSize) viewPortSizepresentationOrientation:(UIDeviceOrientation) presentationOrientationmirrored:(BOOL) mirrored
A transform that converts between image coordinates and coordinate space for displaying 2D content on screen that is aligned with the AR rendered content.
This method assumes camera images are rendered to aspect fill, not aspect fit.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
projectionMatrixForViewportSize:presentationOrientation:mirrored:zNear:zFar:
- (simd_float4x4)projectionMatrixForViewportSize:(CGSize) viewPortSizepresentationOrientation:(UIDeviceOrientation) presentationOrientationmirrored:(BOOL) mirroredzNear:(CGFloat) zNearzFar:(CGFloat) zFar
A 3D projection matrix that will result in the correct alignment of AR rendered content on top of the captured camera image.
This method assumes camera images are rendered to aspect fill, not aspect fit.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|