Authentication Camera
Authentication View is an Android library for easy face-recognition authentication usage, developed by ESaS team for own use and for client companies. It incorporates a ready-to-use camera view element, that can gather face images from different angles and pass them to your API for further processing.
Capabilities
Preview image from camera
Detect faces on pictures
Detect face masks and sunglasses
Direct your client into perfect conditions for identification
Acquire face images for your own processing
Dependency
Gradle
In your project-level build.gradle specify a Jetpack Navigation plugin dependency.
buildscript {
dependencies {
def nav_version = "2.3.5"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
...
}
}Place .aar library file into libs folder in your application module. After that, in your application-level build.gradle add following dependencies and a Jetpack Navigation plugin.
Maven
TODO
How to use
Code
To initialize the procedure, you need to launch ActivityResultContract from your Activity/Fragment.
This launches an Activity, that shows user a guide screen and performs face capture on another screen.
Customization
You can customize your AuthenticationCameraActivity both visually and language-wise. You may override the default theme by inheriting fromAuthenticationCameraTheme:
Please, note that you can customize text colors only through AuthCam_textPrimaryColor and AuthCam_textSecondaryColor and not through any of the text appearance attributes. Also note, that AuthenticationCameraTheme inherits default theme Theme.AppCompat.NoActionBarwith android:statusBarColorset to be the same with the AuthCam_backgroundPrimaryColor, so make sure to add any other customization features to that activity, even if they have nothing to do with AuthCam attributes.
If you choose to customize your activity, please, make sure to override its default theme in your Manifest file the following way:
You can optionally override string resources that are used in AuthenticationCameraActivity. Here are their ids:
Just declare strings with same ids in your resources for that.
Last updated
Was this helpful?