【HMS Core】【ML Kit】Life Detection FAQ Collection

【Problem description 1】

When using the sample code to integrate the liveness detection SDK, an error state code -7001 is reported

【solution】

Please read the "README" file in the sample project carefully before using the sample code. Before you can run the sample code, you need to complete the following.

  1. Download the "agconnect-services.json" file of your application from the AppGallery Connect website, and copy it to the application-level root directory of the sample project.

  2. Change the applicationId in the application-level "build.gradle" file in the sample project to your own application package name.

  3. Set api_key or Access Token (recommended) in ChooseActivity. For details, see Notes on Using Cloud Authentication Information .

    You can scan the QR code in the picture to download the APK test first, and the dynamic liveness detection needs to be tested according to the above prompts of the APK.

     

    cke_9636.png

 

【Problem description 2】

Liveness detection cannot switch to horizontal screen

【solution】

Liveness detection does not currently support horizontal screen and distribution detection (whether it will be supported in the future, please continue to pay attention to the official website dynamics)

cke_10929.png

https://developer.huawei.com/consumer/cn/doc/development/hiai-Guides/mlkit-liveness-detection-0000001051386243#section3582105117159

 

【Problem description 3】

The action living body needs to cooperate to do 3 actions by default, can it be modified?

【solution】

It is not possible to adjust it yet, but the subsequent update version will come out with a customized version, which can be realized. (For specific updates, please pay attention to the official website dynamics)

 

【Problem Description 4】

When customizing the scanning interface, how does the face frame drawn by myself correspond to the detection range?

【solution】

The upper left and lower right are based on the 640*480 image coordinates, and the recommended aspect ratio conforms to the actual face ratio

cke_12158.png

Reference link:

https://developer.huawei.com/consumer/cn/doc/development/hiai-Guides/interactiveliveness-detection-0000001183058584

 

 For more comprehensive technical articles, please visit https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh

{{o.name}}
{{m.name}}

Guess you like

Origin my.oschina.net/u/4478396/blog/9029580