Skip to content

arpoma16/People-counting-raspberry

Repository files navigation

About

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)

Structure

Project \
    - data      # Videos, images, and sources
    - src       # Scritps & local project modules
    - develop   # for exploratory, tools that help to develop the project
    - deliver   # presentations

how to use

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 

Dependecies

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

Referents

  1. People counting HOG + Linear SVM - github proyect
  2. People counting using blob - github proyect
  3. other project
  4. Haar cascade counting
  5. Training Hard cascade
  6. Python with MQTT
  7. Python with Telegram API
  8. We use virtualenv if you want know more about it
  9. get data for train IA
  10. unifique picamera and opencv
  11. py camera work with opencv

Crazy ideas for feature

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

Authors

About

People counter with python and OpenCV and raspberry Pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published