# Class Face

java.lang.Object
com.codename1.ai.vision.Face

public final class Face extends Object

Portable face observation.

Euler angles are expressed in degrees. Bounds and landmark points use the normalized, top-left-origin coordinate space defined by `VisionRect` and `VisionPoint`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Face(VisionRect bounds, Map<String, VisionPoint> landmarks, float yaw, float pitch, float roll, float smilingProbability, int trackingId)`
  `Face(VisionRect bounds, Map<String, VisionPoint> landmarks, float yaw, float pitch, float roll, float smilingProbability, int trackingId, VisionMetadata metadata)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `VisionRect`
  `getBounds()`
  `Map<String, VisionPoint>`
  `getLandmarks()`
  `VisionMetadata`
  `getMetadata()`
  `float`
  `getPitch()`
  `float`
  `getRoll()`
  `float`
  `getSmilingProbability()`
  `int`
  `getTrackingId()`
  `float`
  `getYaw()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Face

    public Face(VisionRect bounds, Map<String, VisionPoint> landmarks, float yaw, float pitch, float roll, float smilingProbability, int trackingId)

  - ### Face

    public Face(VisionRect bounds, Map<String, VisionPoint> landmarks, float yaw, float pitch, float roll, float smilingProbability, int trackingId, VisionMetadata metadata)

- ## Method Details

  - ### getBounds

    public VisionRect getBounds()

  - ### getLandmarks

    public Map<String, VisionPoint> getLandmarks()

  - ### getYaw

    public float getYaw()

  - ### getPitch

    public float getPitch()

  - ### getRoll

    public float getRoll()

  - ### getSmilingProbability

    public float getSmilingProbability()

  - ### getTrackingId

    public int getTrackingId()

  - ### getMetadata

    public VisionMetadata getMetadata()