搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。