https://github.com/bhandarisachindev/NodeBackend.git -day7-10-MoodPlayer
There are two main parts:
🧠1. Mood Detection (Frontend)
You can use webcam + AI to detect the mood via facial expressions using libraries like:
✅ Recommended: face-api.js
- It uses pre-trained models to detect expressions like:
happy, sad, angry, surprised, etc.
Steps:
- Capture video using webcam (
getUserMedia)
- Load
face-api.js models
- Detect face and expression
- Based on expression, set mood
🎵 2. Music (Backend)
✅ Backend Setup Overview (Node.js + Express + MongoDB)
You’ll need:
- File upload (e.g.
multer)
- Database (MongoDB)
- Cloud storage (optional but recommended: ImageKit, AWS S3, Cloudinary, etc.)
Once mood is detected: