How neeraja2303/advertisement-system-based-on-real-time-age-and-gender-detection works
This is a webcam-based demographic advertising application. Its main workflow captures video, detects faces, predicts age and gender, records observations, and exposes live demographics and aggregated analytics through a Flask web interface. The app also loads ad configuration and supports filtered data and CSV export. The excerpts establish these runtime responsibilities, but do not show how selected ads are presented or how the HTML pages invoke the endpoints; those links are omitted. The prediction module is referenced by the app but absent from the supplied tree.
Main entry points: app.py Flask app · advertisement.db Demographics store · ads.json Ad configuration · index.html Home page
Components 11
Capture and inference
- Flask app
app.py - Age/gender prediction
Ad configuration
- Ad configuration
ads.json
Web interface
- Home page
index.html - Dashboard page
dashboard.html
Demographic analytics
- Demographics store
advertisement.db - Live demographics
app.py - Counts and filters
app.py - CSV export
app.py
Other components
- Browser user
- Webcam
Connections 15
- Browser user → Flask app: requests pages
app.py - Flask app → Home page: renders
app.py - Flask app → Dashboard page: renders
app.py - Flask app → Webcam: reads frames
app.py - Flask app → Age/gender prediction: predicts demographics
app.py - Flask app → Demographics store: writes observations
app.py - Flask app → Ad configuration: loads ads
app.py - Flask app → Live demographics: serves
app.py - Live demographics → Browser user: returns JSON
app.py - Counts and filters → Demographics store: queries
app.py - Flask app → Counts and filters: serves
app.py - Counts and filters → Browser user: returns results
app.py - CSV export → Demographics store: queries
app.py - Flask app → CSV export: serves
app.py - CSV export → Browser user: returns CSV
app.py