This project is developed like a project of Sistemas Digitales Avanzados of MIERA in Universidad de Sevilla.
This project uses a raspberry py for counting people across a door and sent this data to the internet to TAGOIO using MQTT to send data about counting and alarm in TELEGRAM chat group for when the place is full and the device is turned on and turned off.
This proyect is based on People counting HOG + Linear SVM and People counting using blob
This is based on a two-step
- Object detector ( hard cascade )
- Object tracker (background subtraction, distance between frames, and Kalman filter)
Project \
- data # Videos, images, and sources
- src # Scritps & local project modules
- develop # for exploratory, tools that help to develop the project
- deliver # presentations
Before implementing this project change the .env.example and copy as .env and change it with your data. Change the values in .env for your TAGOIO count and token of telegram.
you have to run commands in the src folder like:
python .\main.py --source picamera
if you want to run it without the web server you can run the command:
python .\PeopleCounting.py
- python3
- numpy
- opencv please install in raspberry py like this
- flask
- requests
- os
- threading
- random
- time
- dotenv
- argparse
- paho.mqtt
- json
- picamera2 ( only for run in raspberry pi )
you can use requirements.txt
python3 -m venv venv/
pip install -r requirements.txt
how use virtualenv
\venv\Scripts\activate.bat
\env\Scripts\deactivate.bat
pip freeze > requirements.txt
- People counting HOG + Linear SVM - github proyect
- People counting using blob - github proyect
- other project
- Haar cascade counting
- Training Hard cascade
- Python with MQTT
- Python with Telegram API
- We use virtualenv if you want know more about it
- get data for train IA
- unifique picamera and opencv
- py camera work with opencv
We can use a flask like this tutorial for minimizing the grafical interfaz or disable the graphycal in raspberry py and sett value for feature. and this flask with thread
-
Nelson Molina.