Crowd Analytics is a crowd counting and behavior analysis web app built with PyTorch and a Flask frontend.
- Crowd counting from images
- Simple web UI for uploads and results
- Pretrained CSRNet model support
- Python
- PyTorch
- Flask
- HTML/CSS/JS
app.py- Flask app entry pointmodel.py- CSRNet model definitionimg_inference.py- Inference utilitiestrain.py- Training scripttemplates/- HTML templatesstatic/- Frontend assetsfiles/- Model weights and sample inputs
-
Create and activate a virtual environment
python3 -m venv .venv source .venv/bin/activate -
Install dependencies
pip install -r requirements.txt
-
Download/ensure model weights
- Place CSRNet weights at
files/CSRNet_Modified.pth
- Place CSRNet weights at
python app.pyThen open your browser at http://127.0.0.1:5000.
static/uploads/is generated at runtime and is ignored by Git.- Large files (
*.pth,*.mp4) are tracked with Git LFS.
MIT License. See LICENSE.
- Anil Kumar
- Mounika
- Abhi Ram
- Manish