Skip to content

Repository files navigation

FaceOnLive — Face Recognition & Liveness SDK for Flutter

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.

Features

  • 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.

Requirements

Flutter 3.x
Android minSdk 24
iOS 13.0+
Plugin facesdk_plugin (included)

Setup

  1. Get a license key — free trial at https://faceonlive.com.
  2. In lib/main.dart, replace <YOUR_LICENSE_KEY> in the setActivation(...) call.
  3. flutter pub get, then flutter run on a device.

Quick start (Dart)

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);

API reference (FacesdkPlugin)

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

License & support

Requires a valid license key — get one at faceonlive.com. Never commit your key. Questions: contact@faceonlive.com

📦 Full SDK download

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.

About

Cross-platform (Android & iOS) face recognition and liveness detection SDK for Flutter — FaceOnLive

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages