Options
All
  • Public
  • Public/Protected
  • All
Menu

Attaches content to a known point (landmark) on a face as it moves around in the camera view. Landmarks will remain accurate, even as the user's expression changes.

see

https://docs.zap.works/universal-ar/javascript/face-tracking/

Hierarchy

  • FaceLandmark

Index

Constructors

constructor

Properties

pose

pose: Float32Array

The most recent pose of this landmark, relative to the FaceAnchor used to update it. A 4x4 column-major transformation matrix.

Methods

destroy

  • destroy(): void
  • Destroys the face landmark.

    Returns void

updateFromFaceAnchor

  • updateFromFaceAnchor(f: FaceAnchor, mirror?: boolean): void
  • Updates pose directly from the expression and identity in a FaceAnchor.

    Parameters

    • f: FaceAnchor

      The anchor to derive the expression and identity from.

    • Optional mirror: boolean

      Pass true to mirror the location in the X-axis.

    Returns void

updateFromIdentityExpression

  • updateFromIdentityExpression(identity: Float32Array, expression: Float32Array, mirror?: boolean): void
  • Updates pose directly from identity and expression coefficients.

    Parameters

    • identity: Float32Array

      The identity coefficients.

    • expression: Float32Array

      The expression coefficients.

    • Optional mirror: boolean

      Pass true to mirror the location in the X-axis.

    Returns void

Legend

  • Constructor
  • Property
  • Method

Generated using TypeDoc