Accura Face Match
Face Biometrics is used for Matching Both the Source and the Target Image. It Matches the User's Selfie Image with the Image on the Document.
Step 1: Before you begin
If you haven't done already then follow Project Setup steps.
Please download the Accura Scan license and then add it to your app.
To generate your Accura Scan license contact sales@accurascan.com
Move your accuraface.license file into the module (app-level) assets folder (usually
<project>/<app-module>/src/main/assets
)
Note: Make sure license file name should be accuraface.license
Permissions required:
Camera Permission
android.permission.CAMERA
Storage Permission required only for print out debug logs.
Note: Enable logging for debugging purposes using the methods provided below. Please remember to disable logging before releasing the app. (Storage permission is required for logging). AccuraFaceMatchLog.setPrintLogs(true); AccuraFaceMatchLog.refreshLogfile(this); Log file will be stored in InternalStorage/Downloads/AccuraLog.txt
Step 2 : Open Auto Capture Camera
Customize camera screen (Optional)
Open Camera screen using android Intent.
Note: If you want to use default camera screen then create intent with null object. Intent intent = SelfieFMCameraActivity.getCustomIntent(this, null);
Receive Capture Image
Step 3 : Implement face match
(Optional) Required storage permission to read image file from internal storage.
Initialize
com.inet.facelock.callback.FaceHelper
in onCreate methodSet src and target image to faceHelper
Note: Make sure to call "faceHelper.setInputImage" first, followed by "faceHelper.setMatchImage".
Using a File
Using a File URI
Using Path
Using a Bitmap
Using a file URI by using one function
Using a file by using one function
Implement
com.inet.facelock.callback.FaceCallback
to your Activity and Override following methods to receive data.Received original image in Bitmap format to display on ui as per your requirement
Receive Match score of src and target Image on below override method
(Optional) Recomanded override methods for SDK
Receive Detected Face position on your src and Target Images
Take a look of ActivityFaceMatch.java for full working example.
Last updated