Class FaceBio

java.lang.Object
glair.vision.api.FaceBio

public class FaceBio extends Object
The FaceBio class provides methods for performing Face Biometric operations.
  • Constructor Details

    • FaceBio

      public FaceBio(Config config)
      Constructs an FaceBio instance with the provided configuration.
      Parameters:
      config - The configuration settings to use for Face Biometric operations.
  • Method Details

    • activeLivenessSessions

      public ActiveLivenessSessions activeLivenessSessions()
      Get access to Active Liveness Sessions related operations.
      Returns:
      An instance of ActiveLivenessSessions for Active Liveness operations.
    • passiveLivenessSessions

      public PassiveLivenessSessions passiveLivenessSessions()
      Get access to Passive Liveness Sessions related operations.
      Returns:
      An instance of PassiveLivenessSessions for Passive Liveness operations.
    • match

      public String match(FaceMatchParam param) throws Exception
      Performs Face Match using default configuration settings.
      Parameters:
      param - The FaceMatchParam object representing the candidate and stored faces.
      Returns:
      The Face Match result.
      Throws:
      Exception - If an error occurs during the detection process.
    • match

      public String match(FaceMatchParam param, VisionSettings newVisionSettings) throws Exception
      Performs Face Match using custom configuration settings.
      Parameters:
      param - The FaceMatchParam object representing the candidate and stored faces.
      newVisionSettings - The custom vision settings to use.
      Returns:
      The Face Match result.
      Throws:
      Exception - If an error occurs during the detection process.
    • passiveLiveness

      public String passiveLiveness(String imagePath) throws Exception
      Perform Passive Liveness detection using default configuration settings.
      Parameters:
      imagePath - The path to the image file.
      Returns:
      The result of Passive Liveness detection.
      Throws:
      Exception - If an error occurs during the detection process.
    • passiveLiveness

      public String passiveLiveness(String imagePath, VisionSettings newVisionSettings) throws Exception
      Perform Passive Liveness detection using custom configuration settings.
      Parameters:
      imagePath - The path to the image file.
      newVisionSettings - The custom vision settings to use.
      Returns:
      The result of Passive Liveness detection.
      Throws:
      Exception - If an error occurs during the detection process.
    • activeLiveness

      public String activeLiveness(ActiveLivenessParam param) throws Exception
      Perform Active Liveness detection using default configuration settings.
      Parameters:
      param - The ActiveLivenessParam object representing the image and gesture code.
      Returns:
      The result of Active Liveness detection.
      Throws:
      Exception - If an error occurs during the detection process.
    • activeLiveness

      public String activeLiveness(ActiveLivenessParam param, VisionSettings newVisionSettings) throws Exception
      Perform Active Liveness detection using custom configuration settings.
      Parameters:
      param - The ActiveLivenessParam object representing the image and gesture code.
      newVisionSettings - The custom vision settings to use.
      Returns:
      The result of Active Liveness detection.
      Throws:
      Exception - If an error occurs during the detection process.