How shiv4ah/facial-emotion-detection works
This appears to be a student-attentiveness desktop application. The visible workflow begins with a Tkinter landing window and staff login; a successful database lookup opens a staff area. Separate camera scripts capture face images for enrollment and compare live faces with saved templates, emailing an alert after repeated unknown matches. CNN training and eye/head-pose calculations are also present, but the excerpts do not show them connected to a runtime attentiveness workflow. Several referenced modules and the README are unavailable, so those connections are omitted.
Main entry points: log.py Staff login · name.py Live face matching · face_reg.py Face enrollment · main.py Landing window
Components 16
Desktop interface
- Landing window
main.py - Staff login
log.py - Staff area
Face identity
- Face enrollment
face_reg.py - Face templates
face_reg.py - Live face matching
name.py - Template comparison
name.py - Unknown-face alert
name.py
Attention analysis
- CNN training
model.py - Eye ratio
EAR.py - Eye and mouth ratios
EAR_calculator.py - Head-pose estimation
HeadPose.py
Other components
- Staff user
- Staff records
- Camera
- Email service
Connections 10
- Landing window → Staff login: imports
main.py - Staff login → Staff records: queries
log.py - Staff login → Staff area: opens on success
log.py - Camera → Face enrollment: provides frames
face_reg.py - Face enrollment → Face templates: writes images
face_reg.py - Camera → Live face matching: provides frames
name.py - Live face matching → Template comparison: calls
name.py - Template comparison → Face templates: reads images
name.py - Live face matching → Unknown-face alert: counts unknown matches
name.py - Unknown-face alert → Email service: sends email
name.py