Giter Site home page Giter Site logo

git-ztx / face-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dpacassi/face-detection

1.0 1.0 0.0 61.52 MB

Comparing different Face detection solutions from Amazon, Google, IBM, Microsoft, Dlib, OpenCV and other open source solutions.

License: MIT License

PHP 87.93% Python 12.07%

face-detection's Introduction

Face detection - An overview and comparison of different solutions

This repository holds the implementation of the face detection solutions listed in my blog posts.

How does this work?

All face detection implementations are stored in the /src/solutions folder. If you want to run the face detection code yourself, read the relevant README.md file located in each solution's folder.

Custom classes

To add meta information to the images and generate a CSV export, following two classes have been written:

In order to execute shell commands to find faces, following class has been written:

Where's what?

  • Dataset with images to be processed: /dataset
  • Information about how many faces to expect per image in the dataset (to calculate the success rate): /dataset/face_counts.ini
  • Processed datasets with metadata on the images: /dataset-output
  • CSV file with analytical data: /dataset-output/results.csv
  • Implementation of each solution: /src/solutions/<solution>
  • Custom classes: /src/solutions

Important: The dataset-solutions folder has been added to .gitignore in order not to blow up the Git repository size.
In case you're interested to see the processed images used in my blog posts, you can download the complete set from our file server.

Installation

As stated above, the code for each face detection solution can be found in the /src/solutions folder. If you want to run the code locally, please read the corresponding README.md file located in the /src/solutions sub folders.

SaaS vendors

Open source options

CSV Export

Each solution run checks if a /dataset-output/results.csv file exists. If so, it will attach it's data to this CSV file. If not, it will create the file with the corresponding headers.

Dataset

The face detection solutions will try to find faces in all images in the /dataset directory.
You can extend the images or replace them with your own, as you wish.
Important: Only JPG and PNG images are supported for now!

All images currently stored in the /dataset directory were downloaded from pexels.com, many thanks to the contributors and photographers of the images and also to Pexels!

Downloaded images

Contribution

Want to extend the listed solutions or simply enhance existing code?
I'm happy to receive and accept pull requests!

License

MIT License

Copyright (c) 2018 David Pacassi Torrico

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

face-detection's People

Contributors

dpacassi avatar

Stargazers

 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.