Package anlavn.opencv

Class FaceRecognition.Result

java.lang.Object
anlavn.opencv.FaceRecognition.Result
Enclosing class:
FaceRecognition

public static final class FaceRecognition.Result extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Is face match together or not after face recognition:
    true if Testing Face match Original Face and percentMatch greater than or equal to RequirementPercent.
    false if Testing Face does not match Original Face or percentMatch less than RequirementPercent.
    Percent match after face recognition.
    State of result after face recognition:
    [True] if Testing Face match Original Face and percentMatch greater than or equal to RequirementPercent.
    [False] if Testing Face does not match Original Face or percentMatch less than RequirementPercent.
    [Empty Error] if Original Face or Testing Face not exists.
    [Invalid Version] if the current version of FaceRecognition does not match the requirements version.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • state

      public String state
      State of result after face recognition:
      [True] if Testing Face match Original Face and percentMatch greater than or equal to RequirementPercent.
      [False] if Testing Face does not match Original Face or percentMatch less than RequirementPercent.
      [Empty Error] if Original Face or Testing Face not exists.
      [Invalid Version] if the current version of FaceRecognition does not match the requirements version. Then the program will stop immediately.
      [Connection Error] if an exception occurs when checking the requirements version. Then the program will stop immediately.
      [Face Recognition Error] if an exception occurs when recognizing face. Like:
      1. No or too many faces in the frame.
      2. Brightness is too low.
      3. The distance between the face and the camera is too far.
      4. There are masks, glasses, hair covering the face...
    • percentMatch

      public Double percentMatch
      Percent match after face recognition. Have value [0.0 -> 100.0]. The higher, the more accurate.
    • isMatch

      public boolean isMatch
      Is face match together or not after face recognition:
      true if Testing Face match Original Face and percentMatch greater than or equal to RequirementPercent.
      false if Testing Face does not match Original Face or percentMatch less than RequirementPercent.
  • Constructor Details

    • Result

      public Result()