Simple face recognition authentication (Sign up + Sign in) written in Flutter using Tensorflow Lite and Firebase ML vision library.

Overview
banner image

FaceNetAuthentication

Simple face recognition authentication (Sign up + Sign in) written in Flutter using Tensorflow Lite and Google ML Kit library.

Stack

Flutter

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

https://flutter.dev/

Tensorflow lite

TensorFlow Lite is an open source deep learning framework for on-device inference.

https://www.tensorflow.org/lite

Flutter + Tensrorflow lite = tflite_flutter package

TensorFlow Lite plugin provides a dart API for accessing TensorFlow Lite interpreter and performing inference. It binds to TensorFlow Lite C API using dart:ffi.

https://pub.dev/packages/tflite_flutter/install

Support

If you're interested in contributing, please let me know emailing me to [email protected]

Setup

1- Clone the project:

git clone https://github.com/MCarlomagno/FaceRecognitionAuth.git

2- Open the folder:

cd FaceRecognitionAuth

3- Install dependencies:

flutter pub get

Run in iOS directory

pod install

4- Run on device (Check device connected or any virtual device running):

flutter run

To run on iOS you need to have a developer account. See here https://stackoverflow.com/a/4952845

Screenshots

banner image

Licence

https://opensource.org/licenses/BSD-3-Clause

Comments
  • The code is also not working in flutter 2.16.1

    The code is also not working in flutter 2.16.1

    I pulled the code then did a flutter pub update. Installed all the ndk requirements. Upgraded to Android 31 / update gradles/ update kotlin

    I used a pixel 2 and a pixel 5. The code picks up my face in sign in but not in sigh up. I think its something to do with the camera dimensions but I would know where to look right now.

    opened by RobbyGit 17
  • The code is not working in flutter 2.10

    The code is not working in flutter 2.10

    Does anyone have any idea on how to migrate this code to flutter 2.10 because this code is in flutter 2.7 and there have many syntax changes since then. So can anyone please help? @peterlazar1993 @MCarlomagno

    opened by SiddharthOza00 11
  • Keeps Confusing Faces

    Keeps Confusing Faces

    I have an issue where it isn't exactly matching faces accurately at all. I've got one face registered and it lets nearly everyone sign in to that profile.

    opened by dandoii 3
  • The model mobilefacenet.tflite doesn't produce accurate result

    The model mobilefacenet.tflite doesn't produce accurate result

    Hi, I'm having trouble with the model.

    I compared the _euclideanDistance of array result from frames of my face, it yields the distance around .7-.9, which is below the threshold, which is correct.

    However, when I compare the array result of my face with my sister's face, it also yields the same distance, around .7-.9, which is still below the threshold, while it shouldn't be.

    I tested it on both Android and iOS, it shows the same result

    opened by ThangVuNguyenViet 3
  • add iOS support

    add iOS support

    The changes of interest are in:

    • lib/services/facenet.service.dart
    • lib/services/image_converter.dart

    The rest of the changes are auto generated.

    Only minor tweaks were necessary to make it work on iOS

    opened by peterlazar1993 1
  • Have you tried to implement without Firebase and just ML kit?

    Have you tried to implement without Firebase and just ML kit?

    https://developers.google.com/ml-kit/migration/android#new Since we are not using Firebase's cloud component it is wiser to move to the ML kit. I don't think there is a library yet.

    opened by SushantGautam 1
  • Mobilefacenet Output Size

    Mobilefacenet Output Size

    Hello @MCarlomagno , very nice work, thanks for you blog thats so enlightened me, but can i want ask something about mobilefacenet output size, is there any reason for using 192 as output size of mobilefacenet model

    opened by dhevanthareza 0
  • CameraException when capturing picture

    CameraException when capturing picture

    Hello thank you so much for your code.

    I been studying your code for almost 2 weeks already and I was able understand the flow of it. But sometimes this error occur when I click CAPTURE. Have you ever experience this error ?

    CameraException(error, Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference)

    opened by lel101 0
Releases(v2.0)
Owner
Marcos Carlomagno
Software engineer 🚀
Marcos Carlomagno
Face Mask Detection with Tensorflow(Flutter)Face Mask Detection with Tensorflow(Flutter)

Face Mask Detection with Tensorflow(Flutter) Face Mask Detection With TFlite Info An app made with flutter and tensor flow lite for face mask detectio

Mohsen Mirdar 1 May 23, 2022
Flutter realtime object detection with Tensorflow Lite

Flutter realtime object detection with Tensorflow Lite Flutter realtime object d

null 0 Dec 25, 2021
A Flutter plugin to access TensorFlow Lite apis.

tensorflow_lite A Flutter plugin to access TensorFlow Lite apis. TensorFlow Lite is TensorFlow’s lightweight solution for mobile and embedded devices.

Kashif Minhaj 74 Nov 22, 2022
TensorFlow Lite Flutter Plugin

Overview TensorFlow Lite Flutter plugin provides a flexible and fast solution for accessing TensorFlow Lite interpreter and performing inference. The

Amish Garg 383 Jan 5, 2023
A note-taking app powered by Google services such as Google Sign In, Google Drive, and Firebase ML Vision.

Smart Notes A note-taking app powered by Google services such as Google Sign In, Google Drive, and Firebase ML Vision. This is an official entry to Fl

Cross Solutions 88 Oct 26, 2022
A group of overlapping round avatars are called face piles, a face pile is a series of overlapping avatar images that come and go as users join and leave a given group.

Flutter Face Pile A group of overlapping round avatars are called face piles. A face pile is a series of overlapping avatar images that come and go as

Amine Chamkh 3 Sep 22, 2022
A library that exposes device specific speech recognition capability

speech_to_text A library that exposes device specific speech recognition capability. This plugin contains a set of classes that make it easy to use th

null 0 Apr 24, 2022
Flutter plugin that secures your secrets in keychain using biometric authentication (Fingerprint, Touch ID, Face ID...).

Flutter Locker ?? Flutter plugin that secures your secrets in keychain using biometric authentication (Fingerprint, Touch ID, Face ID...). It uses: Lo

Infinum 25 Nov 21, 2022
Flutter firebase auth - Simple implementation of Firebase Authentication using Flutter

FlutterFire Authentication Sample A simple implementation of Firebase Authentica

Souvik Biswas 4 Apr 2, 2022
6.SignIn SignUp-UI - SIGN IN And SIGN UP UI For Flutter

SIGN IN & SIGN UP UI Text Fields Box Shadow Gradient resizeToAvoidBottomInset Ri

Tukhtamurodov Sardorbek 3 May 16, 2022
Codeflow 19 Sep 29, 2022
Google one tap sign in - Flutter Google One Tap Sign In (Android)

Google One Tap Sign In Google One Tap Sign In (Android) A Flutter Plugin for Goo

null 6 Nov 23, 2022
A simple project that will help you learn how to build a simple face filter app with Flutter and Deep AR

flutter_deepar This is a simple project that will help you learn how to build a simple face filter app with Flutter and Deep AR You can read an articl

mobile software engineer and team leader 3 Mar 11, 2022
A simple project demonstrating how to build a face filter app using Flutter and Deep AR

flutter_deepar This is a simple project that will help you learn how to build a simple face filter app with Flutter and Deep AR You can read an articl

Promise Amadi 32 Jan 1, 2023
Face detection app built with Flutter and Firebase ML Kit

Flutter Face Detection Flutter Face Detection with Firebase ML Kit and CustomPainter. Read the article on Medium Made with ?? by Akora-IngDKB. Follow

Akora Ing. Debrah Kwesi Buabeng 44 Sep 29, 2022
Google Vision images REST API Client

Native Dart package that integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.

C Davis 6 Jan 7, 2023
Learn how to build a tensorflow model on Techable Machine and then run it on flutter app.

Ml With Flutter Learn how to build a tensorflow model on Techable Machine and then run it on flutter app. Youtube Tutorial Show Support Recommend Me O

Sanskar Tiwari 133 Jan 3, 2023
Simple alarm app - An alarm with analog clock face and digital indicator in the center for flutter

simple_alarm_app A new Flutter project. Getting Started It's an alarm with analo

null 1 Mar 14, 2022
Connect your flutter app to firebase, use firebase's Authentication. Don't mind my poor UI. 😬

flutter_email_auth A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

Syed Muhammad Ahmad 2 May 2, 2022