Class ActiveLivenessParam

java.lang.Object
glair.vision.model.param.ActiveLivenessParam

public class ActiveLivenessParam extends Object
A record representing parameters for Active Liveness detection.
  • Constructor Details

    • ActiveLivenessParam

      public ActiveLivenessParam(String imagePath, GestureCode gestureCode)
      Constructs an ActiveLivenessParam object with the specified image path and gesture code.
      Parameters:
      imagePath - The file path of the image to be processed.
      gestureCode - The gesture code associated with the image.
  • Method Details

    • getImagePath

      public String getImagePath()
      Gets the image path associated with the ActiveLivenessParam.
      Returns:
      The file path of the image.
    • getGestureCode

      public GestureCode getGestureCode()
      Gets the gesture code associated with the ActiveLivenessParam.
      Returns:
      The gesture code.
    • toString

      public String toString()
      Returns a JSON representation of the ActiveLivenessParam.
      Overrides:
      toString in class Object
      Returns:
      A JSON string representing the image path and gesture code.