搜索插件、代码仓与 APP 分类

插件详情v1.0.6

live_photo_detector

一个单一函数包,用于检测摄像头中可见的面部是活体面部还是非活体面部。

AndroidiOS
近 30 天下载
25
喜欢数
32
Pub 分数
115

安装插件

flutter pub add live_photo_detector

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个轻量级的 Flutter 包,用于判断通过摄像头捕捉到的面部是活体还是照片。它利用机器学习分析面部特征并检测生命迹象,例如微小动作和深度线索。专为需要快速集成面部活体验证功能的应用程序设计,支持 Android 和 iOS 平台。该包提供单一函数接口,便于在身份验证、安全认证或防欺骗系统中实现。

适合场景

  • 身份验证中的面部活体检测
  • 防止身份验证中的照片欺骗
  • 通过实时人脸识别实现安全登录
  • 移动应用中的生物识别验证
  • 增强数字开户的安全性

主要特点

  • 单功能API
  • 跨平台支持(Android 和 iOS)
  • 基于机器学习的检测
  • 轻便且快速
  • 所需设置最少

适合对象

  • 需要人脸活体检测的应用开发者
  • 注重安全的应用程序
  • 身份验证服务
  • 带有生物识别登录的移动应用
  • 初创公司正在构建安全的用户注册流程

使用建议

  • 需要相机访问权限
  • 性能在较旧的设备上可能有所不同
  • 取决于底层机器学习模型的准确性
  • 仅限人脸活体检测
  • 未提及离线模式

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

live_photo_detector

A Flutter package to detect livelyness of a face. This package is extension of m7_livelyness_detection. This package was no longer maintained so I have updated the package.

Index

What is the Livelyness Detection?

Liveness detection for face recognition in biometrics is a technique where an algorithm detects if the person in front of the camera is alive and real. The algorithm is able to recognize a live person from presentation attacks - where a bad actor, or fraud perpetrator, uses someone else's physical characteristics or biometric data (known as "spoofs") for impersonation.

Spoofing attempts using printed photos, recordings, deep fake pictures, and 3D masks poses a serious threat. Facial Liveness Detection incorporates specialized features to identify biometric spoofing attacks, which could be an imitation emulating a person’s unique biometrics scanned through the biometric detector to deceive or bypass the identification and authentication steps provided by the system. Even though face recognition can reliably answer the question, “Is this the right person?” but not the question, “Is this a live person?” This is where liveness detection technology plays a significant role in fraud detection and mitigation. Face biometric matching must be able to detect spoofs in order to be trusted, and to maintain the integrity of biometric data.

Platform Support

iOS Android MacOS Web Linux Windows
✔️ ✔️

Installation

First, we have to install the package on flutter.

Flutter Setup

Add live_photo_detector to your pubspec.yaml dependencies.

Using command-line
flutter pub add live_photo_detector

Native Setup

Next comes the native setup on both android and iOS

iOS
iOS Setup
  1. Open the project in Xcode and set the deployment
  2. Open the ios/Runner/Info.plist file as Source Code.
  3. Add the below-mentioned code inside the <dict> tag.
  <key>NSCameraUsageDescription</key>
  <string>Camera Access for Scanning</string>
  <key>NSMicrophoneUsageDescription</key>
  <string>Microphone for playing instructions audio.</string>
  1. Open the ios/Runner/Podfile and uncomment the second line.
  platform :ios, '14.0' # <---------- Uncomment this line
  1. Set the deployment target in the Xcode project
Screenshot 2023-01-02 at 11 03 17 AM

Android
Android Setup
  1. Open the example/android/app/build.gradle file and set the minSdkVersion as 21.

Example

A call to a single line function will return a temporary path to the captured image.

Code
    final String? response =
        await M7LivelynessDetection.instance.detectLivelyness(
      context,
      config: M7DetectionConfig(
        steps: [
          M7LivelynessStepItem(
            step: M7LivelynessStep.blink,
            title: "Blink",
            isCompleted: false,
          ),
          M7LivelynessStepItem(
            step: M7LivelynessStep.smile,
            title: "Smile",
            isCompleted: false,
          ),
        ],
        startWithInfoScreen: true,
      ),
    );

Example Video

https://user-images.githubusercontent.com/106381741/210200724-ae4af9cc-ffeb-49e4-a3f9-9971b2f256b6.MP4

Contributors


Puneet Raj

所属分类

依赖

依赖清单 8 项

源码仓库

使用此插件的项目

暂无相关数据。