GithubHelp home page GithubHelp logo

mnc_identifier_face's People

Contributors

mncinnocent avatar ramdannur avatar ruslanou avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mnc_identifier_face's Issues

Not showing data in app release

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"),
            )
          ],
        ),
      ),
    );
  }
}

No implementation found for method startLivenessDetection

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 ?

Result tidak berubah

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.