FacePlugin
Get in Touch
.NET

Face Recognition SDK for .NET

A .NET MAUI and C# face recognition SDK with passive liveness detection, covering detection, landmarks, recognition, pose, expression, and attribute analysis on Android and iOS, with 1:N identification.

NIST FRTE-evaluated engineISO/IEC 30107-3-evaluated livenessAndroid & iOS via MAUI
Woman scanning her face with a phone for 1:1 verification on the .NET SDK
Identity Verified
Face Match 99.98%
Requirements

What You Need to Run It on .NET

These are the exact minimum and recommended requirements published in the FaceRecognition-LivenessDetection-DotNet-MAUI repository — check the repo directly for the latest version, since SDK requirements can change between releases.

PlatformsAndroid and iOS via .NET MAUI (net8.0-android, net8.0-ios)
.NET.NET 8 SDK with the MAUI workload (dotnet workload install maui)
AndroidAPI 24, arm64-v8a / Android 10 or newer recommended
iOSiOS 15.0, arm64 device / iPhone 11 or newer recommended
RAM (device)4 GB / 6 GB or more
TestingPhysical device required — emulators and simulators are not for camera work
Quick Start

Install and Activate

Install the SDK, then activate it with a license key before calling any recognition function — every platform follows this same activate-then-initialize pattern.

  • Clone the repository and install the .NET 8 SDK with the MAUI workload. Add src/FaceRecognition.Net.Maui to your solution, or copy FaceSdk.cs and the platform file for the target you ship.
  • Download the native runtimes from the Android and iOS release pages: add facerecognitionsdk.aar as an AndroidLibrary, and the iOS frameworks as NativeReference items with ForceLoad.
  • Set your own application IDs, request a license for them, add the camera and photo permissions for both platforms, and keep engine calls off the UI thread.
csharp
var machine = await FaceSdk.GetMachineCodeAsync();   // send this when you request a key
var code = await FaceSdk.SetActivationAsync("FP1....");
if (code == 0)
    code = await FaceSdk.InitAsync();

var status = await FaceSdk.GetLicenseStatusAsync();

// Read a face: faces, pose, attributes and liveness as JSON
var json = await FaceSdk.DetectAsync(jpeg, flags);
var crop = await FaceSdk.CropFaceAsync(jpeg, box);
// store the template and the crop in YOUR database

var score = await FaceSdk.SimilarityAsync(featureA, featureB);  // 1:1
Note

Building for Windows desktop?

The .NET MAUI plugin targets Android and iOS. For Windows desktop apps, use the Face Recognition SDK for Windows, which exposes 1:N identification and 1:1 verification through a local REST API that any .NET application can call.

Platform notes

.NET MAUI Integration Notes

Build and licensing details from the .NET MAUI repository README.

Install the right SDK

Install the .NET 8 SDK and run dotnet workload install maui. The project targets net8.0-android and net8.0-ios.

Keys are chosen at compile time

LicenseKeys.Demo picks the Android or iOS key when you build, so set both and rebuild for the target you ship.

Async API surface

Calls are awaitable: InitAsync, SetActivationAsync, GetLicenseStatusAsync for licensing, and StartVideoWorkerAsync, SyncDatabaseAsync, AddFrameAsync and PollEventAsync for live 1:N.

Native bindings included

The repository contains the MAUI app project plus the Android and iOS bindings (FaceSdk), so the demo shows exactly what to copy into your own solution.

Physical devices only

Emulators and the simulator have no usable camera for liveness. Use python run_android.py or python run_ios.py with a phone connected.

A Windows desktop app needs the Windows face recognition server instead, since the MAUI package targets Android and iOS.

Licensing

How Licensing Works

Licenses are offline and bound to your application ID or bundle ID. The demo ships with keys for com.faceplugin.facerecognitionsdk (Android) and com.faceplugin.facerecognition.app (iOS); contact FacePlugin for a key scoped to your own app.

FAQ

Frequently Asked Questions

Does the .NET SDK send biometric data to the cloud?

No. Every stage of face recognition runs on your own server or directly on the device, depending on the platform – biometric templates never leave an environment you control.

How is the SDK licensed?

Licenses are offline and bound to the Android applicationId and iOS bundle id of your MAUI app. Contact FacePlugin with both identifiers to receive keys. There are no per-call or per-match fees once licensed.

Where can I see the full source and open an issue?

The FaceRecognition-LivenessDetection-DotNet-MAUI integration is maintained publicly on GitHub at github.com/Faceplugin-ltd, where you can browse the code, file issues, and track releases.

Related

Pairs Well With

Ready to Add Face Recognition to Your .NET App?

Talk to our team to get a license key and a 15-day evaluation period started.