yuz_id 0.0.7 copy "yuz_id: ^0.0.7" to clipboard
yuz_id: ^0.0.7 copied to clipboard

YuzID official library for users

YuzID #

YuzID is a Flutter plugin for face identification and detection, powered by Google ML Kit technology.
It works on both Android and iOS, and provides passive liveness detection by scanning the user's face.

Pub Version License

Screenshot

[Screenshot] [Screenshot] [Screenshot]

Features #

  • Real-time face detection
  • Head position tracking
  • Eyes and mouth open/closed detection
  • Powered by Google ML Kit
  • Supports Uzbek and English languages

Usage #

import 'package:yuz_id/yuz_id.dart';

 Future<String?> runYuzID() async {
    String? photoData;
    
    try {
      photoData = await YuzID.instance.runYuzID(lang: "uz");
    } catch (e) {
      photoData = "";
      print("Something went wrong: $e");
    }
    
    return photoData;
  }

Installation #

Add this to your pubspec.yaml:

dependencies:
  yuz_id: latest_version

Or install it via command line:

flutter pub add yuz_id

iOS

Add the required camera permission to your Info.plist:

<plist version="1.0">
    <dict>
        <!-- Add these two elements: -->
        <key>NSCameraUsageDescription</key>
        <string>App needs camera access for YuzID</string>
        <!-- ... -->
    </dict>
</plist>

Ensure your minimum iOS version is set to 13 or higher in your ios/Podfile:

platform :ios, '13.0'

Android

Add the required permissions and activities to your AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />

<application
...
        <activity
            android:name="uz.elusm.yuzid.YuzIDConnectorActivity"
            android:exported="true"/>
        <activity
            android:name="uz.face.detection.ui.FaceDetectionActivity"
            android:exported="true"/>
    </application>
1
likes
125
points
102
downloads

Publisher

unverified uploader

Weekly Downloads

YuzID official library for users

Repository
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on yuz_id

Packages that implement yuz_id