How princy0605/snapclass-intelligent-ai-attendance-system works
SnapClass is a Streamlit attendance-management app whose main workflow runs from teacher sign-in and subject selection through classroom photo or voice analysis, review, and saving attendance. Students can register with facial data, enroll in subjects, and view attendance. The README also documents subject sharing/enrollment, teacher dashboards, and attendance history. The graph follows the sampled screen and pipeline calls; some documented features live in unsampled components, so their internal relationships are not expanded. Supabase is the documented cloud store and appears in the database configuration.
Main entry points: teacher_screen.py Teacher dashboard · student_screen.py Student screen · app.py Streamlit entry · db.py Database operations
Components 22
App entry and screens
- Streamlit entry
app.py - Home screen
src/screens/home_screen.py - Landing page
Landing_Page/app.py
Teacher workflows
- Teacher dashboard
src/screens/teacher_screen.py - Create subject
src/components/dialog_create_subject.py - Share subject
src/components/dialog_share_subject.py - Add attendance photos
src/components/dialog_add_photo.py - Voice attendance
src/components/dialog_voice_attendance.py - Review attendance
src/components/dialog_attendance_results.py
Student workflows
- Student screen
src/screens/student_screen.py - Auto enrollment
src/components/dialog_auto_enroll.py - Student enrollment
src/components/dialog_enroll.py
Recognition pipelines
- Face recognition
src/pipelines/face_pipeline.py - Voice recognition
src/pipelines/voice_pipeline.py
Data and shared UI
- Database operations
src/database/db.py - Supabase configuration
src/database/config.py - Base layout
src/ui/base_layout.py - Header
src/components/header.py - Footer
src/components/footer.py - Subject card
src/components/subject_card.py
Other components
- User
- Supabase
Connections 35
- User → Streamlit entry: uses
README.md - Streamlit entry → Home screen: routes to
app.py - Streamlit entry → Teacher dashboard: routes to
app.py - Streamlit entry → Student screen: routes to
app.py - Streamlit entry → Auto enrollment: opens
app.py - Teacher dashboard → Database operations: reads and writes
src/screens/teacher_screen.py - Teacher dashboard → Face recognition: analyzes photos
src/screens/teacher_screen.py - Teacher dashboard → Create subject: opens
src/screens/teacher_screen.py - Teacher dashboard → Share subject: opens
src/screens/teacher_screen.py - Teacher dashboard → Add attendance photos: opens
src/screens/teacher_screen.py - Teacher dashboard → Voice attendance: opens
src/screens/teacher_screen.py - Teacher dashboard → Review attendance: shows results
src/screens/teacher_screen.py - Voice attendance → Voice recognition: analyzes audio
src/components/dialog_voice_attendance.py - Voice attendance → Review attendance: shows results
src/components/dialog_voice_attendance.py - Review attendance → Database operations: saves records
src/components/dialog_attendance_results.py - Student screen → Face recognition: recognizes face
src/screens/student_screen.py - Student screen → Voice recognition: creates voice profile
src/screens/student_screen.py - Student screen → Database operations: reads and writes
src/screens/student_screen.py - Student screen → Student enrollment: opens
src/screens/student_screen.py - Student screen → Share subject: opens
src/screens/student_screen.py - Student screen → Subject card: renders
src/screens/student_screen.py - Face recognition → Database operations: loads students
src/pipelines/face_pipeline.py - Database operations → Supabase configuration: uses client
src/database/db.py - Supabase configuration → Supabase: configures
src/database/config.py - Home screen → Base layout: uses styling
src/screens/home_screen.py - Home screen → Header: renders
src/screens/home_screen.py - Home screen → Footer: renders
src/screens/home_screen.py - Teacher dashboard → Base layout: uses styling
src/screens/teacher_screen.py - Teacher dashboard → Header: renders
src/screens/teacher_screen.py - Teacher dashboard → Footer: renders
src/screens/teacher_screen.py - Teacher dashboard → Subject card: renders
src/screens/teacher_screen.py - Student screen → Base layout: uses styling
src/screens/student_screen.py - Student screen → Header: renders
src/screens/student_screen.py - Student screen → Footer: renders
src/screens/student_screen.py - User → Landing page: visits
README.md