Interface FaceTracker

All Known Implementing Classes:
FaceTracker.CppProxy

public interface FaceTracker
Face tracker component. All transformations components of entity with face_tracker component will update relatively face, which index was specified in face asset. Also updates face asset resources. Subclass of component.
  • Method Details

    • setFace

      void setFace(@Nullable Face face)
      Sets face to face tracker.
      Parameters:
      face - (face): face asset
    • getFace

      @Nullable Face getFace()
      Returns:
      face (face): face asset
    • hasFace

      boolean hasFace()
      true if fase with index, specified in face asset was recognized
      Returns:
      face recognition flag (bool)
    • isMouthOpen

      boolean isMouthOpen()
      true if mouth is open
      Returns:
      flag (bool)
    • isSmiling

      boolean isSmiling()
      true if is smiling
      Returns:
      flag (bool)
    • isEyebrowsUp

      boolean isEyebrowsUp()
      true if eyebrows up
      Returns:
      flag (bool)
    • isDisgust

      boolean isDisgust()
      true if disgust
      Returns:
      flag (bool)
    • getEyesStatus

      @NonNull EyesStatus getEyesStatus()
      Returns:
      eyes status (eyes_status)
    • getEars

      @NonNull ArrayList<Ear> getEars()
      Returns:
      ears status [left, right]
    • asComponent

      @Nullable Component asComponent()
      Returns:
      upcast to base type
    • getGender

      @NonNull Gender getGender()
      Returns:
      gender
    • create

      @Nullable static FaceTracker create()
      Fabric method for face tracker creating.
      Returns:
      face tracker component (face_tracker)