FakeRuntimeFace


public final class FakeRuntimeFace


Fake implementation of Face for testing purposes.

Summary

Public constructors

FakeRuntimeFace(
    @NonNull TrackingState trackingState,
    boolean isValid,
    @NonNull float[] blendShapeValues,
    @NonNull float[] confidenceValues
)

Public methods

final boolean

Controls whether calling createAnchor will succeed or throw an IllegalStateException.

@NonNull Anchor

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

@NonNull float[]

the values measuring the blend shapes of the face

@NonNull Pose

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

@NonNull float[]

the confidence values of the face tracker at different regions

@NonNull Pose

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

@NonNull Pose

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

@NonNull Mesh

a Mesh representation of the Face

@NonNull Pose

The Pose located at the tip of the nose.

@NonNull TrackingState

the TrackingState of this trackable

boolean

a flag indicating if the Face is valid

void
setBlendShapeValues(@NonNull float[] value)

the values measuring the blend shapes of the face

final void
setCanCreateAnchors(boolean value)

Controls whether calling createAnchor will succeed or throw an IllegalStateException.

void

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

void
setConfidenceValues(@NonNull float[] value)

the confidence values of the face tracker at different regions

void

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

void

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

void

a Mesh representation of the Face

void

The Pose located at the tip of the nose.

void

the TrackingState of this trackable

void
setValid(boolean value)

a flag indicating if the Face is valid

Public constructors

FakeRuntimeFace

Added in 1.0.0-alpha12
public FakeRuntimeFace(
    @NonNull TrackingState trackingState,
    boolean isValid,
    @NonNull float[] blendShapeValues,
    @NonNull float[] confidenceValues
)

Public methods

canCreateAnchors

Added in 1.0.0-alpha12
public final boolean canCreateAnchors()

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

createAnchor

Added in 1.0.0-alpha12
public @NonNull Anchor createAnchor(@NonNull Pose pose)

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

getBlendShapeValues

Added in 1.0.0-alpha12
public @NonNull float[] getBlendShapeValues()

the values measuring the blend shapes of the face

getCenterPose

Added in 1.0.0-alpha12
public @NonNull Pose getCenterPose()

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

getConfidenceValues

Added in 1.0.0-alpha12
public @NonNull float[] getConfidenceValues()

the confidence values of the face tracker at different regions

getForeheadLeftPose

Added in 1.0.0-alpha12
public @NonNull Pose getForeheadLeftPose()

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

getForeheadRightPose

Added in 1.0.0-alpha12
public @NonNull Pose getForeheadRightPose()

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

getMesh

Added in 1.0.0-alpha12
public @NonNull Mesh getMesh()

a Mesh representation of the Face

getNoseTipPose

Added in 1.0.0-alpha12
public @NonNull Pose getNoseTipPose()

The Pose located at the tip of the nose.

getTrackingState

Added in 1.0.0-alpha12
public @NonNull TrackingState getTrackingState()

the TrackingState of this trackable

isValid

Added in 1.0.0-alpha12
public boolean isValid()

a flag indicating if the Face is valid

setBlendShapeValues

Added in 1.0.0-alpha12
public void setBlendShapeValues(@NonNull float[] value)

the values measuring the blend shapes of the face

setCanCreateAnchors

Added in 1.0.0-alpha12
public final void setCanCreateAnchors(boolean value)

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

setCenterPose

Added in 1.0.0-alpha12
public void setCenterPose(@NonNull Pose value)

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

setConfidenceValues

Added in 1.0.0-alpha12
public void setConfidenceValues(@NonNull float[] value)

the confidence values of the face tracker at different regions

setForeheadLeftPose

Added in 1.0.0-alpha12
public void setForeheadLeftPose(@NonNull Pose value)

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

setForeheadRightPose

Added in 1.0.0-alpha12
public void setForeheadRightPose(@NonNull Pose value)

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

setMesh

Added in 1.0.0-alpha12
public void setMesh(@NonNull Mesh value)

a Mesh representation of the Face

setNoseTipPose

Added in 1.0.0-alpha12
public void setNoseTipPose(@NonNull Pose value)

The Pose located at the tip of the nose.

setTrackingState

Added in 1.0.0-alpha12
public void setTrackingState(@NonNull TrackingState value)

the TrackingState of this trackable

setValid

Added in 1.0.0-alpha12
public void setValid(boolean value)

a flag indicating if the Face is valid