An end-to-end real-time object detection and analytics solution designed for retail stores. Built using Python, YOLOv8, OpenCV, and Streamlit, this system monitors customer activity, detects footfall, and visualizes key retail metrics.
analytics/footfall.csv

| Tool | Purpose |
|---|---|
| Python | Core programming language |
| YOLOv8 | Object detection (via Ultralytics) |
| OpenCV | Video and webcam frame processing |
| Streamlit | Web UI and dashboard |
| Pandas | Data logging & CSV export |
| Matplotlib | Graph plotting in dashboard |
Retail-Analytics/
|-- app.py # Main Streamlit app
|-- detect.py # Image/video/webcam detection logic
|-- dashboard.py # Analytics dashboard view
|-- models/
yolov8n.pt # YOLOv8 pretrained weights
|-- analytics/
footfall.csv # Visitor count log
|-- requirements.txt # Python dependencies
|-- README.md # Project documentation
|-- presentation.pptx # (Optional) Hackathon PPT
git clone https://github.com/your-username/retail-analytics.git
cd retail-analytics
python -m venv venv
venv\Scripts\activate # Windows
# OR
source venv/bin/activate # macOS/Linux
pip install -r requirements.txt
streamlit run app.py
.jpg, .jpeg, .png image formats.mp4, .avi, .mov video formatsAll footfall data is saved in:
analytics/footfall.csv
Sample format:
timestamp,person_count
2025-06-24 14:05:01,3
2025-06-24 14:05:02,2
This data feeds the analytics dashboard automatically.
Ankush M., Anjali
Project developed for hackathon & real-world deployment.
This project is licensed for educational and non-commercial use only.