Skip to content

hiok2000/faceanalysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Pipeline for face detection and matching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.1%
  • C# 18.7%
  • Shell 5.6%
  • Makefile 3.9%
  • Dockerfile 3.7%