Skip to content

guo-haozhong/android-face-liveness

 
 

Repository files navigation

android-face-liveness

icon

Nodeflux Face Liveness demo application with SDK sdk-liveness-0.3.2.aar

Requirement

  • Minimal android API: 21
  • Maximal android API: 30
  • Docs use java
  • IDE use Android Studio

Getting Started

Please notes this method is just for example, you shouldn't save secrets in resources.

Setup key first, you can get your key at here. Create secrets.xml under values folder and put your access_key and secret_key inside

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item  name="access_key" type="string">{ACCESS_KEY}</item >
    <item  name="secret_key" type="string">{SECRET_KEY}</item >
</resources>

After that you're good to go and you're ready to build your application.

For more information visit here or you can contact us at here

Customization

Nodeflux SDK Liveness allows you to change face guidance area color, instruction text area color, and instruction text.

Face guidance area color

image

Copy color below to res/values/colors.xml and edit color to your desire

<color name="face_area">#C8000000</color>

Instruction text area color

image

Copy color below to res/values/colors.xml and edit color to your desire

<color name="instruction_area">#CB2B2B2B</color>

Instruction text

image

Copy string below to res/values/strings.xml and edit string to your desire

<string name="left_orientation" translatable="false">Look over your left shoulder (30°)</string>
<string name="right_orientation" translatable="false">Look over your right shoulder (30°)</string>
<string name="finished" translatable="false">Finished</string>
<string name="repeat_from_start" translatable="false">Repeat from start in 1.5 seconds</string>
<string name="eye_blink" translatable="false">Blink both of your eyes</string>

About

Nodeflux Face Liveness sample app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%