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.

Summary

Public constructors

Public methods

static NormalizedKeypoint
create(float x, float y)

Creates a NormalizedKeypoint instance from normalized x and y coordinates.

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.

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

Public constructors

NormalizedKeypoint

public NormalizedKeypoint()

Public methods

create

public static NormalizedKeypoint create(float x, float y)

Creates a NormalizedKeypoint instance from normalized x and y coordinates.

Parameters
float x

the x coordinates of the normalized keypoint.

float y

the y coordinates of the normalized keypoint.

create

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
float x

the x coordinates of the normalized keypoint.

float y

the y coordinates of the normalized keypoint.

Optional<String> label

optional label of the keypoint.

Optional<Float> score

optional score of the keypoint.

equals

public final boolean equals(Object o)

hashCode

public final int hashCode()

label

public abstract Optional<String> label()

score

public abstract Optional<Float> score()

toString

public final String toString()

x

public abstract float x()

y

public abstract float y()