Giter Club home page Giter Club logo

flutter_camera_ml's Introduction

Camera ML Example

This template serves as a starting point for implementing a Camera and connecting it to a Native SDK, sending the results back to Flutter.

Getting Started

This project is associated with the article available at: Implementing Face Liveness Detection in Flutter with High Performance

Here's the VDO from the demo https://www.youtube.com/watch?v=kfFJI_ipdso

To use this template, follow these steps:

iOS

  1. Change FaceLivenessDelegate.swift: Implement your own callback or delegate from the SDK. Adjust the interface based on your SDK.
  2. FaceLivenessDetection.swift: Add the initial setup for your ML to replace our initial SDK.
  3. FaceLivenessDetection.swift: Add your ML processing here and replace it with our feeding logic.
  4. You can change the camera resolution with this line: captureSession.sessionPreset = .photo. Currently, it's set to the maximum.

Android

  1. Change FaceLivenessListener.kt and replace YourSDKDelegate with your callback.
  2. Change FaceLivenessDetection.kt: Add the initial setup for your ML and your ML processing.
  3. You can change the camera resolution at ResolutionStrategy on line 45. I added a parameter from Dart to adjust the resolution based on the controller from Flutter.

Please note that this template is not a one-size-fits-all solution, but it provides a solid starting point (around 70-80% completion). You will need to implement the remaining functionality and customize it to meet your specific requirements.

Enjoy coding!

flutter_camera_ml's People

Contributors

theamorn 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.