项目介绍

FaceOnLive/Face-Recognition-SDK-Android 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,目前获得 240 个 Star、45 次 Fork。

仓库全名
FaceOnLive/Face-Recognition-SDK-Android
Star 数
240
Fork 数
45

README 摘要

FaceOnLive — Face Recognition & Liveness SDK for Android On-device face detection, face liveness (anti-spoofing), and 1:1 / 1:N face matching for Android. All processing runs locally — no image ever leaves the device. Part of the FaceOnLive on-premises biometric SDK suite. Features Face detection with landmarks and a liveness score (blocks photos, videos, masks). Face template extraction and similarity comparison…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Face-Recognition-SDK-Android 用什么语言开发?

主要使用 Java 编写,目前有 240 个 Star。

如何获取 Face-Recognition-SDK-Android 的源码?

可以直接克隆仓库:git clone https://github.com/FaceOnLive/Face-Recognition-SDK-Android.git;安装与运行步骤见仓库 README。

Face-Recognition-SDK-Android 最近还在维护吗?

仓库最近一次更新为 7月3日,当前没有未关闭的 Issue;Star 数为 240,可作为社区活跃度的参考。

关于

Fast, Accurate, Mask-Aware Face Recognition SDK with Liveness Detection

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Java
Kotlin

README

FaceOnLive — Face Recognition & Liveness SDK for Android

On-device face detection, face liveness (anti-spoofing), and 1:1 / 1:N face matching for Android. All processing runs locally — no image ever leaves the device.

Part of the FaceOnLive on-premises biometric SDK suite.

Features

  • Face detection with landmarks and a liveness score (blocks photos, videos, masks).
  • Face template extraction and similarity comparison for verification & identification.
  • Fully on-device and offline; camera and image input.

Requirements

Min Android SDK 24 (Android 7.0)
Compile / Target SDK 34
Language Kotlin / Java
Permissions CAMERA

Setup

  1. Open the project in Android Studio.
  2. Get a license key — free trial at https://faceonlive.com.
  3. In app/src/main/java/com/bio/facerecognition/MainActivity.kt, replace <YOUR_LICENSE_KEY> in FaceSDK.setActivation(...) with your key.
  4. Build and run on a device.

Quick start

import com.bio.facesdk.FaceSDK

if (FaceSDK.setActivation("<YOUR_LICENSE_KEY>") == FaceSDK.SDK_SUCCESS) {
    FaceSDK.init(assets)
}

val faces = FaceSDK.faceDetection(bitmap)                 // detect + liveness
val t1 = FaceSDK.templateExtraction(bitmap1, faces1[0])
val t2 = FaceSDK.templateExtraction(bitmap2, faces2[0])
val similarity = FaceSDK.similarityCalculation(t1, t2)    // 0.0 – 1.0

API reference

Method Description Returns
setActivation(license) Activate with your license key. SDK_SUCCESS or error
init(assets) Load the face models. SDK_SUCCESS or error
faceDetection(bitmap) Detect faces (box, landmarks, liveness score). list of faces
templateExtraction(bitmap, face) Extract a face’s feature template. template
similarityCalculation(t1, t2) Compare two templates. 0.0–1.0
yuv2Bitmap(frame, w, h, rot) Camera YUV frame → Bitmap. Bitmap

Status codes: SDK_SUCCESS, SDK_LICENSE_KEY_ERROR, SDK_LICENSE_APPID_ERROR, SDK_LICENSE_EXPIRED, SDK_NO_ACTIVATED, SDK_INIT_ERROR.

License & support

Requires a valid license key — get one at faceonlive.com. Never commit your key. Questions: [email protected]

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

评论

暂无评论