Face identification/verification on camera video stream
The apk directory contains the video_recognition_demo executable:
Running the sample on an Android device
- Download the samples from the latest Face SDK release (see the Assets section).
- Copy the samples to your Android device.
- Follow the instructions in the steps below.
Building the sample from source
- Request a trial license.
- Place the trial license
3divi_face_sdk.lic
in thelicense
folder. - Open the
examples/android
folder in Android Studio as an existing project. - Select video_recognition_demo, build and install the resulting application on the device (smartphone/tablet).
Android Video Recognition
The program demonstrates tracking, detection and identification/verification of faces from the database on the video stream from the camera.
To run the sample, install video_recognition_demo.apk
on the device. To install the sample, you must allow the application to have access to the listed functions.
Permissions requested when installing video_recognition_demo.apk
To add a face to the recognition database, click the new person button in the application and enter the name.
The tracking results and information about the face are displayed in the window. The detected face and the face recognition result from the database with the name are displayed in the upper right corner of the window.
In the lower right corner there is a menu with the following sections:
- new person – add an unidentified face to the database
- settings – select the type of camera used, image resolution, method used for face detection, and recognition threshold)
- quit – exit the program
Result of launching video_recognition_demo.apk
Source code: examples/android/video_recognition_demo