v1.0.2
mnc_identifier_face
MNC 活體檢測 Flutter 插件
34喜歡 20近 30 天下載130Pub 分數
AndroidiOS
mncinnovation/mnc_identifier_face open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter package for liveness detection using mlkit face recognition to detect live person present at the point of capture.
This plugin requires Android SDK 21 or higher.
This plugin requires iOS 11.0 or higher.
Add this code to your Info.plist
<key>NSPhotoLibraryUsageDescription</key>
<string>(Reason to use Photo Library)</string>
<key>NSCameraUsageDescription</key> <!-- added this for camera permission -->
<string>(Reason to use camera access)</string>
import 'package:mnc_identifier_face/mnc_identifier_face.dart';
import 'package:mnc_identifier_face/model/liveness_detection_result_model.dart';
...
Future<void> startDetection() async {
try {
LivenessDetectionResult livenessResult =
await MncIdentifierFace().startLivenessDetection();
debugPrint("result is $livenessResult");
} catch (e) {
debugPrint('Something goes unexpected with error is $e');
}
}
If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket. Pull request are also welcome.
依賴清單 4 項
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^2.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗