MCarlomagno / FaceRecognitionAuth

😀🤳 Simple face recognition authentication (Sign up + Sign in) written in Flutter using Tensorflow Lite and Firebase ML vision library.
BSD 3-Clause "New" or "Revised" License
385 stars 193 forks source link

App throw exception, Interpreter is null #46

Open rahmrny12 opened 2 years ago

rahmrny12 commented 2 years ago

I want to put this code in a separate project, I've matched the package versions, and did the following initial setup: https://pub.dev/packages/tflite_flutter#important-initial-setup--add-dynamic-libraries-to-your-app

But when i open sign in page, and only sign in page, it's throw an error : Interpreter is null from setCurrentPrediction method in ml_service.dart. In the sign up page, everything works very well.

Always-Bijoy commented 2 years ago

check tflite_flutter package and lock at (Important) Initial setup : Add dynamic libraries to your app there you find install.sh and install.bat and read the instruction . It will solve your problem