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

@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

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-alpha13
public FakeRuntimeFace(
    @NonNull TrackingState trackingState,
    boolean isValid,
    @NonNull float[] blendShapeValues,
    @NonNull float[] confidenceValues
)

Public methods

getBlendShapeValues

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

the values measuring the blend shapes of the face

getCenterPose

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

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

getConfidenceValues

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

the confidence values of the face tracker at different regions

getForeheadLeftPose

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

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

getForeheadRightPose

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

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

getMesh

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

a Mesh representation of the Face

getNoseTipPose

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

The Pose located at the tip of the nose.

getTrackingState

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

The TrackingState of this trackable

isValid

Added in 1.0.0-alpha13
public boolean isValid()

a flag indicating if the Face is valid

setBlendShapeValues

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

the values measuring the blend shapes of the face

setCenterPose

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

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

setConfidenceValues

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

the confidence values of the face tracker at different regions

setForeheadLeftPose

Added in 1.0.0-alpha13
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-alpha13
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-alpha13
public void setMesh(@NonNull Mesh value)

a Mesh representation of the Face

setNoseTipPose

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

The Pose located at the tip of the nose.

setTrackingState

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

The TrackingState of this trackable

setValid

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

a flag indicating if the Face is valid