Landmark

data class Landmark(x: Float, y: Float) : FlatShape<Landmark>

Represents a face landmark as a point on the image with two coordinates relative to the top-left corner. Both coordinates have values between 0 and 1.

Constructors

Landmark
Link copied to clipboard
fun Landmark(x: Float, y: Float)

Functions

map
Link copied to clipboard
open override fun map(mapping: (Float, Float) -> Pair<Float, Float>): Landmark

Creates a new geometric shape of the same type by applying the provided mapping to the coordinates of the current shape.

Properties

x
Link copied to clipboard
val x: Float
y
Link copied to clipboard
val y: Float