Skip to content

FacePlusPlus/MegviiIDCard-Android

Repository files navigation

MegviiIDCard-Android

Android sdk and demo for IdCard.

How to use

  1. Add the JitPack repository to your root build.gradle at the end of repositories:
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  1. Add the dependency
dependencies {
        compile 'com.github.FacePlusPlus:MegviiIDCard-Android:0.3.0'
}
  1. Go to the official website register an account
  2. Apply key and secret from here, create a file named "key" in assets directory, paste key and secret in format like key;secret
  3. Bund your bundle id from here
  4. Download sdk from here, find the model that named with megviiidcard_0_3_0_model and put it in raw directory
  5. Run demo or your app.