Cross-platform (Android + iOS) face detection, face liveness (anti-spoofing), and 1:1 / 1:N face matching for Flutter, via the bundled facesdk_plugin. All processing runs on-device.
Part of the FaceOnLive on-premises biometric SDK suite.
- Face detection with landmarks and a liveness score.
- Face template extraction and similarity comparison.
- One Dart API across Android and iOS; fully on-device and offline.
| Flutter | 3.x |
| Android | minSdk 24 |
| iOS | 13.0+ |
| Plugin | facesdk_plugin (included) |
- Get a license key — free trial at https://faceonlive.com.
- In
lib/main.dart, replace<YOUR_LICENSE_KEY>in thesetActivation(...)call. flutter pub get, thenflutter runon a device.
final _facesdkPlugin = FacesdkPlugin();
int state = await _facesdkPlugin.setActivation("<YOUR_LICENSE_KEY>") ?? -1;
if (state == 0) {
await _facesdkPlugin.init();
}
final faces = await _facesdkPlugin.extractFaces(imagePath); // detect + liveness
final similarity = await _facesdkPlugin.similarityCalculation(template1, template2);| Method | Description | Returns |
|---|---|---|
setActivation(license) |
Activate with your license key. | status int (0 = success) |
init() |
Load the face models. | status int |
extractFaces(imagePath) |
Detect faces (with liveness) and extract templates. | list of faces |
similarityCalculation(t1, t2) |
Compare two templates. | 0.0–1.0 |
Requires a valid license key — get one at faceonlive.com. Never commit your key. Questions: contact@faceonlive.com
This repository contains the source/demo code only. Download the complete SDK — engine libraries and models, with full project structure — from the Releases page and extract it over this project.