FakeRuntimeFace


class FakeRuntimeFace


Fake implementation of Face for testing purposes.

Summary

Public constructors

FakeRuntimeFace(
    trackingState: TrackingState,
    isValid: Boolean,
    blendShapeValues: FloatArray,
    confidenceValues: FloatArray
)

Public functions

open Anchor

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

Public properties

open FloatArray

the values measuring the blend shapes of the face

Boolean

Controls whether calling createAnchor will succeed or throw an IllegalStateException.

open Pose

the Pose at the geometric center of the mesh if it exists

open FloatArray

the confidence values of the face tracker at different regions

open Pose

The Pose located at the left side of the detected face's forehead.

open Pose

The Pose located at the right side of the detected face's forehead.

open Boolean

a flag indicating if the Face is valid

open Mesh

a Mesh representation of the Face

open Pose

The Pose located at the tip of the nose.

open TrackingState

the TrackingState of this trackable

Public constructors

FakeRuntimeFace

Added in 1.0.0-alpha12
FakeRuntimeFace(
    trackingState: TrackingState = TrackingState.PAUSED,
    isValid: Boolean = true,
    blendShapeValues: FloatArray = FloatArray(0),
    confidenceValues: FloatArray = FloatArray(0)
)

Public functions

createAnchor

Added in 1.0.0-alpha12
open fun createAnchor(pose: Pose): Anchor

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

Public properties

blendShapeValues

Added in 1.0.0-alpha12
open var blendShapeValuesFloatArray

the values measuring the blend shapes of the face

canCreateAnchors

Added in 1.0.0-alpha12
var canCreateAnchorsBoolean

Controls whether calling createAnchor will succeed or throw an IllegalStateException. Defaults to true.

centerPose

Added in 1.0.0-alpha12
open var centerPosePose

the Pose at the geometric center of the mesh if it exists

confidenceValues

Added in 1.0.0-alpha12
open var confidenceValuesFloatArray

the confidence values of the face tracker at different regions

foreheadLeftPose

Added in 1.0.0-alpha12
open var foreheadLeftPosePose

The Pose located at the left side of the detected face's forehead.

foreheadRightPose

Added in 1.0.0-alpha12
open var foreheadRightPosePose

The Pose located at the right side of the detected face's forehead.

isValid

Added in 1.0.0-alpha12
open var isValidBoolean

a flag indicating if the Face is valid

mesh

Added in 1.0.0-alpha12
open var meshMesh

a Mesh representation of the Face

noseTipPose

Added in 1.0.0-alpha12
open var noseTipPosePose

The Pose located at the tip of the nose.

trackingState

Added in 1.0.0-alpha12
open var trackingStateTrackingState

the TrackingState of this trackable