NormalizedLandmark

@TargetApi(value = 31)
public abstract class NormalizedLandmark


Normalized Landmark represents a point in 3D space with x, y, z coordinates. x and y are normalized to [0.0, 1.0] by the image width and height respectively. z represents the landmark depth, and the smaller the value the closer the landmark is to the camera. The magnitude of z uses roughly the same scale as x.

Summary

Public constructors

Public methods

static NormalizedLandmark
create(float x, float y, float z)

Creates a normalized landmark from x, y, z coordinates.

static NormalizedLandmark
create(
    float x,
    float y,
    float z,
    Optional<Float> visibility,
    Optional<Float> presence
)

Creates a normalized landmark from x, y, z coordinates with optional visibility and presence.

static NormalizedLandmark

Creates a normalized landmark from a normalized landmark proto.

static List<NormalizedLandmark>

Creates a list of normalized landmarks from a NormalizedLandmarkList.

final boolean
final int
abstract Optional<Float>
final String
abstract Optional<Float>
abstract float
x()
abstract float
y()
abstract float
z()

Public constructors

NormalizedLandmark

public NormalizedLandmark()

Public methods

create

public static NormalizedLandmark create(float x, float y, float z)

Creates a normalized landmark from x, y, z coordinates.

create

public static NormalizedLandmark create(
    float x,
    float y,
    float z,
    Optional<Float> visibility,
    Optional<Float> presence
)

Creates a normalized landmark from x, y, z coordinates with optional visibility and presence.

createFromProto

public static NormalizedLandmark createFromProto(LandmarkProto.NormalizedLandmark landmarkProto)

Creates a normalized landmark from a normalized landmark proto.

createListFromProto

public static List<NormalizedLandmark> createListFromProto(
    LandmarkProto.NormalizedLandmarkList landmarkListProto
)

Creates a list of normalized landmarks from a NormalizedLandmarkList.

equals

public final boolean equals(Object o)

hashCode

public final int hashCode()

presence

public abstract Optional<Float> presence()

toString

public final String toString()

visibility

public abstract Optional<Float> visibility()

x

public abstract float x()

y

public abstract float y()

z

public abstract float z()