Giter Site home page Giter Site logo

trellixvulnteam / face-and-object-detection_5lla Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuhanzha/face-and-object-detection

0.0 0.0 0.0 539.48 MB

In this project, we aim to construct a face detection model that can accurately detect and count the faces on both images and WebCam. We used a method haar to extract features. After that, by applying extracted features to cascade method, we are able to detect people's faces and also count the number of faces through pictures as well as webcam. Finally, we implement the contemporary model which can distinguish people as well as objects with confidence value through pictures and real-time webcam.

Shell 0.81% JavaScript 0.19% C++ 8.27% Python 71.91% Java 0.09% TypeScript 0.04% Makefile 0.03% HTML 0.86% GLSL 0.01% Jupyter Notebook 17.02% Dockerfile 0.03% Starlark 0.75%

face-and-object-detection_5lla's Introduction

ADS Project 5: Face and Object Detection

Projec title: Face Detection

  • Term: Spring 2018

  • Team 9

  • Team members:

  • Project summary: Everyday actions are increasingly being handled electronically, instead of pencil and paper or face to face. This growth in electronic transactions results in great demand for fast and accurate user detection and identification. In this project, we aim to construct a face detection model that can accurately detect and count the faces on both images and WebCam. We used a method haar to extract features. After that, by applying extracted features to cascade method, we are able to dectect people's faces and also count the number of faces through pictures as well as webcam. Finally, we implement the contemporary model which can distinguish people as well as objects with confidence value through pictures and real-time webcam.

  • Project Challenge: The first cascade model could not detect rotated faces. To encounter such limitation, we modified our model so that it could detect rotated faces. The second cascade model could solve the rotation problem but could not detect side faces. To overcome such limitations, a popular and powerful approach is the use of tensorflow. In this section, we implement object detection with a pretrained model, Tensorflow Object Detection API. This model requires intallation of tensorflow. Further instruction of the installation can be referred to https://github.com/tensorflow/models/tree/master/research/object_detection. This model can detect and categorize object, including person, bottle, cellphone, etc. However, cascada model would result better if only faces are showed on an image while this API model would result better if more parts of human body are showed.

  • main.ipynb

  • A main reproducible HTML page

  • Presentation

Result demonstration

image As showed above, our cascade model can accurately detect rotated faces.

Face detection and counting based on Cascade method:

image image image image

Object detection based on CNN using TensorFlow:

image image image image image

The more exciting part of this project is the object detection using real time webcam based on either cascade and TensorFlow. You can refer to main for more details. Please note that we suggest clone/download the whole repository so that you can to reproduce the results easily through main.

Note that you may need to set the working directory to "doc" folder by hand before you start reproduce the results, if not by default. Otherwise, you may run into some directory issues.

Contribution statement: Generally we did the project together during our meetings (implement face detection model and API).

  • Chen, Ziyu: Built the original model; implemented tensorflow to a contemporary model; debugged and edited the main notebook to make it reproducible and look better.
  • Cui, Wanting: Improved by adding rotate element.
  • Kong, Yuehan: Tried to improve by adding upper body element; wrote and organized github page.
  • Lam, Leo: Debugged the code; wrote the main notebook.
  • Zha, Yuhan: Researched and introduced tensorflow; prepare the presentation

Following suggestions by RICH FITZJOHN (@richfitz). This folder is orgarnized as follows.

proj/
├── lib/
├── data/
├── doc/
├── figs/
└── output/

Please see each subfolder for a README file.

face-and-object-detection_5lla's People

Contributors

leolamk avatar trellixvulnteam avatar wanting-cui avatar yuehankong avatar yuhanzha avatar zailchen 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.