Liveness Detection Integration Document

Android-SDK-Liveness Detection

Preparations

  1. Register: Please contact ADVANCE Guardian to acquire Account.
  2. Get accessKey, secretKey

Have a quick look at the Demo

  1. Install Guardian-Demo-v1.0.apk to your Phone.
  2. Login the page and input the verify code that we provided.

Integrate SDK to your project

  1. unzipping the zip that you download, you will find files as follow:
File/Directory FilesExplanation
livenessThe module of Liveness Detection function
drawable/light_drawableDrawable resources of light theme
drawable/dark_drawableDrawable resources of dark them
libaailiveness_v1.0.0.sodifferent types of so files
liveness-v1.0.0.aaraar files, in which liveness detection function was included.
  • Liveness Module is UI module integrated with Liveness Detection function, which can be used in you main project and modified by your actual demand.
  • About libaailiveness_v1.0.0.so: aar have x86_64, arm64_v8a, x86 and armeabi-v7a four types of architecture so files. If your project need to depend on other architecture (eg, armeabi), you just copy the .so file to its directory.
  1. Import liveness module to you project.

  2. Add dependency to liveness module in app project.

  3. Add follow codes in app-> build.gradle, Then build the project is OK.

     repositories {
         flatDir {
             dirs project(':liveness').file('libs')
         }
     }
    

Quick start

  1. Initialize SDK. There are two types of way to initialize it.
    • No 1: config in code–You could add follow initialization codes in custom application:

            GuardianLivenessDetectionSDK.init(this, "your accessKey","your secretKey");
      
    • No 2: config in Mainifest—You could add configuration in mainfest file:

        <meta-data
          android:name="ai.advance.liveness.accessKey"
          android:value="your accessKey" />
        <meta-data
          android:name="ai.advance.liveness.secretKey"
          android:value="your secretKey" />
      

      Then Initialize it in application:

         GuardianLivenessDetectionSDK.init(this);    
      

PostScript: when these two ways are exist, the first way’s key will be adopted.

  1. start the liveness detection page:

Liveness detection page not deal with camera permission, please make sure the permission is permitted before enter the page.

	startActivity(new Intent(this, LivenessActivity.class));
  1. liveness module’s code could be modified to meet your demand. More details please refer to [API document Index]

Currently, Chines, English and Indonesian languages/audios are supported in SDK. Meanwhile, two types of UI are available to choose,You could customize your UI by demand.

[API document Index]: Liveness Detection API.html “Look API”
[Demo download site]:https://www.pgyer.com/ZMPt “Download demo”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值