This project uses OpenCV to count and track the number of people on screen from video livestream of the Huntington Beach pier. The count of people is used to update a PyQt5 GUI which displays how busy the pier is.
Using OpenCV the program detects moving people, then tracks them untill they eventually leave the screen. Every 600 frames the max amount of people seen at once is stored and used to update the GUI. By default this screen isn't displayed to the user.
This GUI is displayed and updates about every 10 seconds
-
Download or clone repository
-
pip install requirements.txt
-
Run main.py and wait a few seconds for program to start up
-
I believe the GUI will not work on Mac but that is untested
- Python 3.9
- OpenCV
- Pafy
- PyQt5
This project is inspired by this tutorial


