mncinnovation / mnc_identifier_face Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I tried this code in the debug app but when it was released it didn't work, there wasn't even an error,
import 'package:cool_alert/cool_alert.dart';
import 'package:flutter/material.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:mnc_identifier_face/mnc_identifier_face.dart';
import 'package:mnc_identifier_face/model/liveness_detection_result_model.dart';
import 'package:path_provider/path_provider.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
var app = await getApplicationSupportDirectory();
Hive.init(app.path);
Box box = await Hive.openBox("galaxeus", path: app.path);
runApp(MaterialApp(
home: MyApp(
box: box,
)));
}
class MyApp extends StatefulWidget {
final Box box;
const MyApp({
Key? key,
required this.box,
}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
late Map jsonData = {};
@override
void initState() {
super.initState();
task();
}
task() {
try {
setState(() {
jsonData = widget.box.get("data", defaultValue: {});
});
} catch (e) {}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Liveness Identifier Example'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(jsonData.toString()),
ElevatedButton(
onPressed: () async {
try {
LivenessDetectionResult livenessResul = await MncIdentifierFace().startLivenessDetection();
print(livenessResul);
setState(() {
jsonData = livenessResul.toJson();
});
await widget.box.put("data", livenessResul.toJson());
await CoolAlert.show(context: context, type: CoolAlertType.error, text: livenessResul.toJson().toString());
} catch (e) {
print(e);
await CoolAlert.show(context: context, type: CoolAlertType.error, text: "Eror: $e");
}
},
child: const Text("START LIVENESS IDENTIFIER"),
)
],
),
),
);
}
}
Support l10n so the face instruction could be in the user language.
Flutter 3.16.0
mnc_identifier_face: ^1.0.2
In release mode getting this error
'Null' is not a subtype of type 'int'
and also update kotlin_version to latest version from 6.1.0
I found this error when trying to run the plugin
MissingPluginException(No implementation found for method startLivenessDetection on channel mnc_identifier_face)
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method startLivenessDetection on channel mnc_identifier_face)
E/flutter (11773): #0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:175
E/flutter (11773):
E/flutter (11773): #1 MncIdentifierFace.startLivenessDetection
package:yesso/…/LivenessDetection/mnc_identifier_face.dart:13
E/flutter (11773):
E/flutter (11773): #2 _FaceScanState.build.
Please how to fix it ?
Halo dev,
saya ketemu bug mungkin ya,
saat selesai capture dan dapat resultnya.
image result nya selalu sama dengan result image result yg pertama kali capture.
walaupun sudah beberapa kali coba,hasil gambarnya tetap sama.
bahkan sudah saya coba hapus file image sebelumnya. di saat melakukan capture lagi,result nya image nya kembali sama dengan result yg pertama kali.
is this package need subscription ?
Hi,
Good morning.
I need cutomize your face detection plugin (https://pub.dev/packages/mnc_identifier_face).
But there is not source code. Can you share ?
Eanur
Skype: eanur41
from Bangladesh
When the liveness detection is completed and verified, i need the whole video of it.
please help me here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.