Code Monkey home page Code Monkey logo

vcanteen-crowd-estimator-keras's Introduction

vCanteen-crowd-estimator

An unofficial implementation of CVPR2016 paper Single-Image Crowd Counting via Multi-Column Convolutional Neural Network

My source for the files train_preprocessing.m, get_density_map_gaussian.m and weight.h5 are from uestcchicken. This is the link to his github about the implementation of this paper too.

I wholeheartly thank him for his contribution. Without him(or her) this project wouldn't be complete.

We use Keras as an implementation ONLY

Installation

  1. Install Keras, Tensorflow.
pip3 install keras
pip3 install tensorflow
  1. Install Jupyter.
pip3 install jupyter
  1. Clone this repository.
git clone https://github.com/tann9949/vCanteen-crowd-estimator.git

To launch it on your camera

  1. In vCanteen.py, line 141, delete argument videopath.
  2. Run this command on your terminal/command prompt
python3 vcanteen.py

To launch it on your video file

  1. Add your video to icanteen_video directory.
  2. In vCanteen.py, change the videopath variable (line 140) as your video.
  3. Run this command on your terminal/command prompt
python3 vcanteen.py

Predicting headcount with your images

  1. Launch jupyter notebook and open Crowd Count MCNN_icanteen.ipynb.
  2. Change the img_path of every cell to be the PATH to your images.
  3. Change the name of the loaded image (see the line with cv2.imread).
  4. Enjoy estimating the crowd.

Label your own crowd dataset

  1. Launch image_preprocessor/Head_Labeler.m with Matlab.
  2. Change num_images, img_path and img_name to match with your dataset.
  3. Run Head_Labeler.m
  4. Mark the head on your images by clicking on the head (one point per head is enough).
  5. To exit, close the figure.

Note for labeling with getpts

  1. To delete the latest label, press backspace.
  2. To finish labeling, press return.

Other note

It is recommended to read the paper before try using this code to guarantee an understanding of the topics. Prerequisites include:

  • Neural network.
  • Convolutional Neural Network.
  • Keras.
  • Python Programming.

Authors

  • Chompakorn Chaksangchaichot (5931229821)
  • Peeramit Masana (5931316721)
  • Akekamon Boonsith (5931393021)

vcanteen-crowd-estimator-keras's People

Contributors

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