Enum FaceDetectionStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FaceDetectionStatus>

    public enum FaceDetectionStatus
    extends java.lang.Enum<FaceDetectionStatus>
    Face detection status constants
    Since:
    1.0.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FACE_ALIGNED
      Face aligned with the requested angle.
      FACE_FIXED
      Face detected and fixed in the requested position, e.g.
      FACE_FOUND
      Face detected but not yet fixed in the requested position.
      FACE_LOST
      Face was previously detected but the user moved away from the camera.
      FACE_MISALIGNED
      Face found but its position doesn't match the requested angle.
      FACE_TURNED_OPPOSITE
      The user turned in the opposite direction of the requested angle.
      FACE_TURNED_TOO_FAR
      The user turned beyond the requested angle and the face can no longer be detected.
      FAILED
      Face detection failed due to a library error.
      MOVED_TOO_FAST
      The user turned too fast in the requested direction.
      STARTED
      The face detection started but no face has yet been detected.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FaceDetectionStatus valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FaceDetectionStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • STARTED

        public static final FaceDetectionStatus STARTED
        The face detection started but no face has yet been detected.
        Since:
        1.0.0
      • FAILED

        public static final FaceDetectionStatus FAILED
        Face detection failed due to a library error.
        Since:
        1.0.0
      • FACE_FOUND

        public static final FaceDetectionStatus FACE_FOUND
        Face detected but not yet fixed in the requested position.
        Since:
        1.0.0
      • FACE_FIXED

        public static final FaceDetectionStatus FACE_FIXED
        Face detected and fixed in the requested position, e.g. inside the oval.
        Since:
        1.0.0
      • FACE_MISALIGNED

        public static final FaceDetectionStatus FACE_MISALIGNED
        Face found but its position doesn't match the requested angle.
        Since:
        1.0.0
      • FACE_ALIGNED

        public static final FaceDetectionStatus FACE_ALIGNED
        Face aligned with the requested angle. This is the face that will be used for face recognition.
        Since:
        1.0.0
      • FACE_LOST

        public static final FaceDetectionStatus FACE_LOST
        Face was previously detected but the user moved away from the camera.
        Since:
        1.0.0
      • FACE_TURNED_TOO_FAR

        public static final FaceDetectionStatus FACE_TURNED_TOO_FAR
        The user turned beyond the requested angle and the face can no longer be detected.
        Since:
        1.0.0
      • FACE_TURNED_OPPOSITE

        public static final FaceDetectionStatus FACE_TURNED_OPPOSITE
        The user turned in the opposite direction of the requested angle.
        Since:
        1.0.0
      • MOVED_TOO_FAST

        public static final FaceDetectionStatus MOVED_TOO_FAST
        The user turned too fast in the requested direction. This may indicate a spoof attempt.
        Since:
        1.0.0
    • Method Detail

      • values

        public static FaceDetectionStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FaceDetectionStatus c : FaceDetectionStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FaceDetectionStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null