Giter Club home page Giter Club logo

facerecognition's Introduction

Google ML Vision Face Recognition Completed Flutter App for both iOS and Android

This is the realtime face recognition flutter app using both Google ML Vision and TensorFlow Lite running well on both Android and iOS to utilize both ways in order to recognize face as fast as real-time. Tflite Model is being used in this app is "mobilefacenet.tflite".

Steps

Face detection

Used Firebase Google ML Vision to detect faces. This is the ON-DEVICE ML vision tool of Google which means we either don't need any corresponding project on Firebase or JSON files.

Face Recognition

Use mobilefacenet.tflite pretrained model along with tflite_flutter widget for this purpose.

Installing

Step 1: Download or clone this repo:

git clone https://github.com/ngtrphuong/facerecognition.git

Step 2: Go to project root and execute the following command in console to get the required dependencies:

flutter pub get 

Step 3: Add/update library to ensure flutter app works well with iOS devvices

Firstly, we can always create flutter iOS cache via command " ** flutter precache --ios ** " in root directory of Flutter app

Secondly, go into ios directory via cd ios and perform command pod install to install all necessary libraries for iOS app

The last, as usual, open Runner.xcworkplace and configure required fields, parameters prior to running in either on Android Studio or in terminal as normal

Step 4: Install flutter app

flutter run 

Important Notes to be aware

  1. After successful "flutter pub get", remember go into ios, edit Podfile and add/uncomment platform line and put ít release to 12.0 or newer ( platform :ios, '12.0' ). This is the mandatory update to ensure this project runs well on iOS devices.

  2. This FaceID works pretty well with Camera mode in "low" resolution while a bit of lag in other resolution modes. Please pay attention into this.

  3. All flutter packages are latest up-to-date, recommend not to change anything with these packages in our production app.

Demo

This can be seen in below gif files (exactly these are what you can see with this app) -

  1. https://github.com/ngtrphuong/Face-Recognition-Flutter/blob/master/images/rec1.jpg

References

  1. https://github.com/sirius-ai/MobileFaceNet_TF

  2. Mobile Face Net

  3. Guidance on how to configure iOS Camera/Micro permissions request - https://pub.dev/packages/image_picker

  4. Google ML Vision widget (Our Client mostly relies on this Widget) - https://pub.dev/packages/google_ml_vision

facerecognition's People

Contributors

ntrongphuong avatar ngtrphuong avatar

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.