com.pax.dal

Interface ILivenessDetector.IFaceUIManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void detectFinish()
      活体检测结束时回调。
      Call back when liveness detection is finished.
      void setMessage(int code)
      检测时的提示信息。
      Prompt information during detection.
      void showPreview()
      活体检测镜头可以获取到预览数据时回调。
      Call back when the camera can get preview data.
      void startPreview(android.os.Bundle bundle)
      开始活体检测时回调(此时可能还未获取到预览数据)。
      Call back at the beginning of the liveness detection (preview data may not be available at this point).
      void stopPreview()
      停止活体检测时回调。
      Call back when liveness detection is stopped.
    • Method Detail

      • startPreview

        void startPreview(android.os.Bundle bundle)
        开始活体检测时回调(此时可能还未获取到预览数据)。
        Call back at the beginning of the liveness detection (preview data may not be available at this point).
        Parameters:
        bundle -
        Key 类型 说明
        timeout int 超时时间
        amount String 支付金额
        Key Type Instructions
        timeout int Timeout
        amount String Amount spent
        Since:
        V3.19.00
      • showPreview

        void showPreview()
        活体检测镜头可以获取到预览数据时回调。
        Call back when the camera can get preview data.
        Since:
        V3.19.00
      • setMessage

        void setMessage(int code)
        检测时的提示信息。
        Prompt information during detection.
        Parameters:
        code -
        • -10000:人脸不在检测区域。
        • -10001:距离太远。
        • -10002:距离太近。
        • -10003:人脸角度大。
        • -10004:口罩遮挡。
        • -10005:墨镜眼睛部位遮挡。
        • -10006:脸部有遮挡。
        • -10007:多人脸。
        • -10000:The face is not in the detection area.
        • -10001:The distance is too far.
        • -10002:The distance is too close.
        • -10003:Face angle is large.
        • -10004:Face mask.
        • -10005:The eye part of sunglasses is blocked.
        • -10006:The face is covered.
        • -10007:Multiple faces.
        Since:
        V3.19.00
      • stopPreview

        void stopPreview()
        停止活体检测时回调。
        Call back when liveness detection is stopped.
        Since:
        V3.19.00
      • detectFinish

        void detectFinish()
        活体检测结束时回调。
        Call back when liveness detection is finished.
        Since:
        V3.19.00