Git Product home page Git Product logo

face-club's Introduction

A web application help recognize and maintenance faces from images imported by ImageDocker

Platform python

Objective:

  1. scan picture files from a mounted volume
  2. detect and recognize faces from the pictures
  3. store the names of recognized faces into database
  4. provide front-end to tag and untag faces on pictures

Major dependencies:

  • face detection: dlib, opencv, face_recognition
  • web: flask
  • db: sqlalchemy(sqlite3), asyncpg
  • schedule: apscheduler

Database:

  • Will connect to a PostgreSQL database maintained by ImageDocker
  • Will maintain a SQLite database locally

Environment setup:

  1. Install Anaconda for mac
  2. Install Homebrew
  3. install following packages by homebrew
brew install cmake
brew install xquartz
brew install gtk+3 boost
  1. initiate a virtual environment by conda
cd python_env
./restore_conda_env.sh

Usage

  1. Web access
http://127.0.0.1:5000
  1. Command line
  • active conda profile
conda activate face37

'face37' can be customized in python_env/conda_env.conf

  • prepare dataset for training
/path/to/dataset
/path/to/dataset/person1/picture1.jpg
/path/to/dataset/person1/picture2.jpg
/path/to/dataset/person2/picture1.jpg
/path/to/dataset/person2/picture2.jpg
/path/to/dataset/person3/picture1.jpg
/path/to/dataset/person3/picture2.jpg
  • train a model
python encode_faces.py --dataset /path/to/dataset --encodings model.pickle
  • recognize faces from a picture
python recognize_faces_image.py --encodings model.pickle --image one.jpg --display 0

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.