Real-time crowd detection using machine learning for people detection and counting from video streams. This project identifies human presence in frames and visualizes detections in real time.
Built using Google AI Studio and TensorFlow.js.
- Real-time people detection
- Crowd / people counting
- Bounding box visualization
- Browser-based execution
- Lightweight and fast inference
- Video stream support
- TensorFlow.js
- TypeScript
- Vite
- HTML/CSS
- Node.js
CrowdSense-AI/
│
├── src/ # Core detection logic
├── scripts/ # Utility scripts
├── docs/ # Documentation files
├── index.html # App entry point
├── package.json # Dependencies
├── vite.config.ts # Vite configuration
└── README.md
- Video input is captured from camera or file
- TensorFlow.js loads the detection model
- Humans are detected in each frame
- Bounding boxes are drawn around people
- Total count is calculated
- Results displayed in real time
- Node.js installed
npm installCreate .env.local and add:
GEMINI_API_KEY=your_api_key_here
npm run devApp will start at:
http://localhost:5173
- Smart surveillance systems
- Event monitoring
- Campus safety
- Public space analytics
- Footfall counting
- Heatmap visualization
- Person tracking IDs
- Multi-camera support
- Overcrowding alerts
Apurva Nikam