Flutter

About SDK

1. Setup

1.1 'Face SDK' Setup

Android

  • Copy the SDK (libfacesdk folder) to the 'android' folder of your project.

  • Add SDK to the project in settings.gradle

include ':libfacesdk'

1.2 'Face SDK Plugin' Setup

  • Copy 'facesdk_plugin' folder to the root folder of your project.

  • Add the dependency in your pubspec.yaml file.

  facesdk_plugin:
    path: ./facesdk_plugin
  • Import the facesdk_plugin package.

  import 'package:facesdk_plugin/facesdk_plugin.dart';
  import 'package:facesdk_plugin/facedetection_interface.dart';

2 API Usages

2.1 FacesdkPlugin

  • Activate the 'FacesdkPlugin' by calling the 'setActivation' method:

  • Initialize the 'FacesdkPlugin':

  • Set parameters using the 'setParam' method:

  • Extract faces using the 'extractFaces' method:

  • Calculate similarity between faces using the 'similarityCalculation' method:

2.2 FaceDetectionInterface

To build the native camera screen and process face detection, please refer to this sample:

This file contains the necessary code for implementing the camera screen and performing face detection.

Last updated