Skip to main content
Version: 3.24.0 (latest)

Face identification/verification on camera video stream

The apk directory contains the video_recognition_demo executable:

Running the sample on an Android device

  1. Download the samples from the latest Face SDK release (see the Assets section).
  2. Copy the samples to your Android device.
  3. Follow the instructions in the steps below.

Building the sample from source

  1. Request a trial license.
  2. Place the trial license 3divi_face_sdk.lic in the license folder.
  3. Open the examples/android folder in Android Studio as an existing project.
  4. 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