GithubHelp home page GithubHelp logo

zjferal / android-face-landmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luca96/android-face-landmarks

0.0 1.0 0.0 105.36 MB

Android app that localizes facial landmarks in nearly real-time

License: MIT License

Kotlin 0.31% CMake 0.69% C 0.25% C++ 98.18% Java 0.05% Cuda 0.47% Shell 0.02% MATLAB 0.01% Batchfile 0.01% Makefile 0.03%

android-face-landmarks's Introduction

Android App for Facial Landmark Localization

An Android Application capable of localizing a set of facial landmarks trough the frontal camera of the device with pretty-good detection performance.

Requires:

  • OpenCV 4
  • Dlib
  • Kotlin support
  • Kotlin Coroutines

Workflow

  • The app utilize the frontal camera of the device to continously capture frames that are directly processed by the Face Detector built inside the Camera1 API's.
  • From the detected faces only the prominent one is taken and further analized.
  • The face is then converted to grayscale (OpenCV) and processed by the Dlib Face Landmark Detector.
  • Finally, the localized landmarks are drawn on the UI and the entire process will repeat for the next captured frame.

Models

The models used by the Dlib landmark detector can be downloaded directly inside the app, otherwise they can be found here and here.

Usage:

  1. First clone the repository.
  2. Before importing the project into AndroidStudio there's a little editing to do:
    • Open the app/CMakeLists.txt
    • Then, replace with your path the variables PROJECT_PATH and OPENCV_PATH.
  3. Now the project is ready to be imported into AndroidStudio.

Building Dlib from Scratch

If you want to build the latest Dlib release with custom optimization and ABIs, you can follow the instructions available here. Otherwise, you can continue with the ones that I'd already prebuilt.

android-face-landmarks's People

Contributors

luca96 avatar

Watchers

James Cloos 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.