NormalizedKeypoint

public abstract class NormalizedKeypoint

Normalized keypoint represents a point in 2D space with x, y coordinates. x and y are normalized to [0.0, 1.0] by the image width and height respectively.

Public Constructors

Public Methods

static NormalizedKeypoint
create(float x, float y, Optional<String> label, Optional<Float> score)
Creates a NormalizedKeypoint instance from normalized x and y coordinates, and the optional label and keypoint score.
static NormalizedKeypoint
create(float x, float y)
Creates a NormalizedKeypoint instance from normalized x and y coordinates.
final boolean
final int
abstract Optional<String>
label()
abstract Optional<Float>
score()
final String
abstract float
x()
abstract float
y()

Inherited Methods

Public Constructors

public NormalizedKeypoint ()

Public Methods

public static NormalizedKeypoint create (float x, float y, Optional<String> label, Optional<Float> score)

Creates a NormalizedKeypoint instance from normalized x and y coordinates, and the optional label and keypoint score.

Parameters
x the x coordinates of the normalized keypoint.
y the y coordinates of the normalized keypoint.
label optional label of the keypoint.
score optional score of the keypoint.

public static NormalizedKeypoint create (float x, float y)

Creates a NormalizedKeypoint instance from normalized x and y coordinates.

Parameters
x the x coordinates of the normalized keypoint.
y the y coordinates of the normalized keypoint.

public final boolean equals (Object o)

Parameters
o

public final int hashCode ()

public abstract Optional<String> label ()

public abstract Optional<Float> score ()

public final String toString ()

public abstract float x ()

public abstract float y ()