Giter Site home page Giter Site logo

hiruthicshass / crowd-detection-and-analyzation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benvind/crowd-detection-and-analyzation

2.0 0.0 0.0 20.48 MB

A Python Program using OpenCV to detect the maximum numbers of people present in the frame and show visualised analyse of the data

Python 100.00%

crowd-detection-and-analyzation's Introduction

Crowd-Detection-And-Analyzation

A Python Program to detect the maximum numbers of people present in the frame and show visualised analyse of the data. CrowdDetection.py First the program uses opencv to detect the avgerage number of people present in the frame for a minute. It uses a specially trained algorithm known as the cascade of a program and this cascade uses diffrent Objects.caffemodel Objects.prototxt.txt training model to learn and try to detect many objets and people. Since we just need our program to detect only the number of people in the given frame we enable only the people model to detect people. With the help of the ids of each detection, the program counts the number of people in the frame for one minute. This data is converted to an average of one minute. The time library is used to keep a track of time. Both the average and current time data is used for processing the further project.The average value per minute along with the is being stroed as a csv file. This file is later used to plot the graphs

plot.py HeatMap.py

Using this data a normal realtime plot-line graph is used along with a custom heat map which uses only one input at a time.

P.S. if you are using the heat map please close the map to see the change for the second value in the csv file and if the data is not being written in the csv file then try deleting the csv file and run the program again.Run the program for atleast one-two minutes to see the data written in the file since the program writes the data in the csv file every one mintue.

Hence you have a program to detect the number of people in the frame and to plot two diffrent graphs. Hope you guys like it! ENJOY YOUR CODE

WE HAVE INCLUDED EXAMPLE CSV FILE SO YOU CAN DIRCETLY RUN PLOT.PY AND HEATMAP.PY TO CHECK THE OUTPUT

DIRECTIONS OF USE:

1-Install all the necessary python packages: ~numpy ~imutils ~opencv ~opencv-contribute ~matpoltlib ~pandas ~seaborn ~psutil

2-Comands to run the program: ~python CrowdDetection.py --prototxt Objects.prototxt.txt --model Objects.caffemodel ~python plot.py ~python HeatMap.py

3.Output

crowd-detection-and-analyzation's People

Contributors

adarshgdaniel avatar benvind avatar

Stargazers

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