Giter VIP home page Giter VIP logo

faceanalysis's Introduction

FaceAnalysis

Travis CI status

What's this?

This repository contains an API for face detection and matching. The algorithm backend used for the computer vision is pluggable and customizable. Currently the following algorithms are supported:

More information on customizing and implementing new face detection algorithms can be found here.

Architecture diagram for faceanalysis

Setup instructions

  1. Install Docker, Docker-Compose and GNU Make.
  2. Clone this repo.
  3. Review the default configuration values in .env.
  4. To run tests type make test from within the top level directory.
  5. To initialize the database, type make createdb. This only needs to be executed once.
  6. To start the server, run make server.

API definition

  1. Register your user by making a POST request to /api/v1/register_user with a username and password.

  2. Optionally retrieve a token by making a GET request to /api/v1/token with your username:password in the Authentication header. Access all other resources by passing your_token:any_value in the Authentication header (using Basic Auth) or by passing username:password for each request

  3. Upload an image by making a POST request to /api/v1/upload_image.

  4. Process an image by making a POST request to /api/v1/process_image. This will extract face vectors for the image and match it against all other images in the database. This is an asynchronous process.

  5. Check the status of the image to see if it is finished processing by making a GET request to /api/v1/process_image/<image_id>. Once the image is finished processing, it will be removed from the system's storage and only the face vectors and matches are persisted in the system's database.

  6. See which other images are matches for a given image by making a GET request to /api/v1/image_matches/<image_id>.

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.