Git Product home page Git Product logo

people-counter's Introduction

PEOPLE COUNTER

This is investigation prototype of application, which main goal is to count number of people that enter and leave some area

Started 28.08.2018

Local setup

Create a local virtual python environment

pip3 install virtualenv

virtualenv -p python3 python-env

source python-env/bin/activate

Install the dependencies for the project

pip install -r requirements.txt

For windows anaconda can be used to ease installation

Project tree

.
├── classes.py
├── people_counter.py                       people counting algorithm
├── pl.py                                   statistic visualisation
├── streaming                               streaming ivestigation
│   ├── Stream.py
│   ├── ffserver.py
├── tracking                                centroid tracking algorithm
│   ├── centroidtracker.py
│   ├── trackableobject.py
│   └── Tracking.py
├── README.md   
├── mobilenet_ssd                           Caffe deep learning model files
│   ├── MobileNetSSD_deploy.caffemodel
│   └── MobileNetSSD_deploy.prototxt             
├── requirements.txt                        dependencies
└── start.py                                app entry point

Briefly about the algorithm

  • get frame
    • every n frame:
      • convert the frame to a blob and pass the blob through the network and obtain the detections
      • loop over detections and filter out weak and useless detections
      • construct a dlib rectangle object and then start the dlib correlation tracker. Add the tracker to our list of trackers
    • else:
      • update the tracker and grab the updated position
      • use the centroid tracker to associate the (1) old object centroids with (2) the newly computed object centroids
    • loop over the tracked objects:
      • check to see if a trackable object exists for the current object ID. Create if there is no existing trackable object
      • otherwise determine utilize it to determine direction and count
    • draw

HOW TO

 python start.py

people-counter's People

Contributors

ramanhaivaronski avatar

Watchers

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