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 Detail

      • 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
        java.util.ArrayList<Ear> getEars()
        Returns:
        ears status [left, right]
      • asComponent

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

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