Skip to content

A people counter written in python and using openCV - it utilizes background subtraction and can work in real time.

Notifications You must be signed in to change notification settings

brianedelman/People-Counter-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

There are two different methods of using this program. The first is to run it on video footage which you can do from the terminal. To do so use the following command:

python motion_detector.py --video [file path to video]
For example :python motion_detector.py -v videos/solo_person_walking.mp4


To run the algorithm to a camera that is attached to the machine that you're running it on just run the program in the IDE or:

python motion_detector.py


You can change the position of the boundary by changing the variable line_point1 and line_point2 at the top.

For different camera positions you may want to change the minimum size and the number of dilations and erosions.

About

A people counter written in python and using openCV - it utilizes background subtraction and can work in real time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%