How janurjan/viruabud works
VirtuaBud combines account-based access, browser webcam emotion analysis, an emotion-support chat, and relaxation videos. A separate Python webcam detector loads the supplied trained model, while the notebook represents the model-development work. The main browser workflow runs from the dashboard to live expression analysis or relaxation content. Source excerpts show the PHP authentication and dashboard wiring; emotion-analysis internals are partly represented by the JavaScript and Python excerpts, while the notebook and SQL schema were not inspected.
Main entry points: welcome.php Session dashboard · index.php Login · config.php Database connection · logout.php Logout
Components 17
Accounts
- Login
virt/index.php - Registration
virt/register.php - Session dashboard
virt/welcome.php - Logout
virt/logout.php - Account deletion
virt/welcome.php - Database connection
virt/config.php - User database
virt/database.sql
Wellness features
- Chat loader
Emotion-detection-main/chat.js - Dialogflow messenger
- Relaxation videos
virt/relaxing end.php - YouTube videos
Emotion analysis
- Emotion page
virt/face.php - Browser face analysis
virt/sketch.js - Desktop emotion detector
Emotion-detection-main/videotester.py
Model assets
- Trained model
Emotion-detection-main/best_model.h5 - Model notebook
Emotion-detection-main/Emotion_Detection.ipynb
Other components
- Visitor
Connections 23
- Visitor → Login: submits credentials
virt/index.php - Visitor → Registration: creates account
virt/register.php - Login → Database connection: queries users
virt/index.php - Registration → Database connection: stores account
virt/register.php - Database connection → User database: connects to
- Login → Session dashboard: redirects on success
virt/index.php - Session dashboard → Login: redirects when unauthenticated
virt/welcome.php - Visitor → Session dashboard: requests dashboard
virt/welcome.php - Session dashboard → Emotion page: links to
virt/welcome.php - Emotion page → Browser face analysis: loads script
virt/face.php - Browser face analysis → Visitor: shows expressions
- Session dashboard → Dialogflow messenger: embeds messenger
virt/welcome.php - Chat loader → Dialogflow messenger: loads scripts
Emotion-detection-main/chat.js - Session dashboard → Relaxation videos: links to
virt/welcome.php - Relaxation videos → YouTube videos: embeds videos
virt/relaxing end.php - Visitor → Logout: requests logout
- Logout → Login: redirects to
virt/logout.php - Visitor → Account deletion: confirms deletion
virt/welcome.php - Account deletion → Database connection: deletes user
virt/welcome.php - Account deletion → Logout: redirects after deletion
virt/welcome.php - Desktop emotion detector → Trained model: loads and predicts with
Emotion-detection-main/videotester.py - Visitor → Desktop emotion detector: provides webcam frames
Emotion-detection-main/videotester.py - Model notebook → Trained model: associated model artifact