GithubHelp home page GithubHelp logo

xijunjun / dlib-face-recognition-delaunay-triangulation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from efviodo/dlib-face-recognition-delaunay-triangulation

0.0 1.0 0.0 71.17 MB

Python project to perform face detection and landmarks recognition using dlib plus delaunay triangulation using OpenCV

Python 100.00%

dlib-face-recognition-delaunay-triangulation's Introduction

Dlib Face Detection + OpenCV Delaunay Triangulation

This project aims to guide you in the process of face detection and landmark recognition, using Dlib library. In addition, it shows how to visualize the results using OpenCV and using two techniques known as: delaunay triangulation and voronoi diagrams.

img

See article on Medium for a more detailed explanation.

Requirements

Before running anything, you must install the project dependencies:

opencv-python==4.5.1.48
numpy==1.19.5
dlib==19.21.1
imutils==0.5.4

You can run pip install to install all the dependencies at once or install it one by one. This process may take a few minutes.

pip install -r requirements.txt

Usage

The project has two main modules: face_recognition.py where you will find everything related to face detection and landmark recognition, and delaunay.py where you will find the main script, delaunay triangulation, etc.

To run face detection and analysis for example for Luis.jpg photo, call delaunay.py as follows:

python delaunay.py --image Luis.jpg 

Also, you can change script behavior using different flags:

  • --image : Path to image to process
  • --vovonoi : Display face landmarks using Voronoi diagram
  • --save : Save results as images
  • --l28 : Use only 28 of the 68 face landmarks returned by Dlib shape_predictor.

dlib-face-recognition-delaunay-triangulation's People

Contributors

efviodo avatar

Watchers

 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.