0 purchases
yesid flutter
yesid #
Getting Started #
Include the yesid_flutter plugin in your pubspec.yaml file yesid_flutter: ^0.2.6-beta then run flutter pub get
Usage #
import 'package:yesid_flutter/yesid_flutter.dart';
final _yesidFlutterPlugin = YesidFlutter();
dynamic results;
// other code
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Yesid SDK"),
),
body: Center(
child: Column(
children: [
// your widgets
],
),
),
);
}
copied to clipboard
OCR Function Call
Future<dynamic> startOCRCamera() async {
final configuration = OCRConfigurationBuilder()
.setAndroidLicense("ANDROID_LICENSE")
.setIOSLicense("IOS_LICENSE")
.setLensFacing(1)
.build();
dynamic ocrResults;
try {
ocrResults = await _yesidFlutterPlugin.startOCRCamera(configuration);
} on PlatformException {
ocrResults = 'Failed to get platform version.';
}
setState(() {
results = ocrResults;
});
}
copied to clipboard
Face Enrollment
Future<dynamic> startFaceEnrollment() async {
final configuration = FaceEnrollmentConfigurationBuilder()
.setAndroidLicense("ANDROID_LICENSE")
.setIOSLicense("IOS_LICENSE")
.build();
dynamic faceEnrollResults;
try {
faceEnrollResults =
await _yesidFlutterPlugin.startFaceEnrollment(configuration);
} on PlatformException {
faceEnrollResults = 'Failed to get faceEnrollment';
}
setState(() {
results = faceEnrollResults;
});
}
copied to clipboard
Face Authentication
Future<dynamic> startFaceAuth() async {
final configuration = FaceAuthConfigurationBuilder()
.setAndroidLicense("ANDROID_LICENSE")
.setIOSLicense("IOS_LICENSE")
.setFirstImage("base64image")
.setSecondImage("base64image")
.build();
dynamic faceAuthResults;
try {
faceAuthResults = await _yesidFlutterPlugin.startFaceAuth(configuration);
} on PlatformException {
faceAuthResults = 'Failed to get face auth';
}
setState(() {
results = faceAuthResults;
});
}
copied to clipboard
Touchless
Future<dynamic> startTouchless() async {
final configuration = TouchlessConfigurationBuilder()
.setAndroidLicense("ANDROID_LICENSE")
.setIOSLicense("IOS_LICENSE")
.setFingerScanDirection(FingerScanDirections.THUMB_RIGHT)
.build();
dynamic touchlessResults;
try {
touchlessResults =
await _yesidFlutterPlugin.startTouchless(configuration);
} on PlatformException {
touchlessResults = 'Failed to start touchless: $touchlessResults';
}
setState(() {
results = touchlessResults;
});
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.