Skip to content

TZstatsADS/Spring2018-Project5-grp9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Spring2018-Project5-grp_9 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published