How priyanshuk143/ai-based-exam-proctoring works
This is a Flask online-exam and proctoring application. Teachers manage exams and questions; students register, take an exam, and receive scores. The main application also streams webcam frames and performs facial, gaze, and mouth checks. The graph combines sampled route and database behavior with major README capabilities; some route-level connections are documented rather than visible in the excerpts.
Main entry points: app.py Flask routes · logreg.db Exam database · database.py SQLite access · templates Web views
Components 15
Web workflows
- Flask routes
app.py - Account access
app.py - Web views
templates
Exam and reporting
- Exam management
app.py - Exam attempt
app.py - Score reporting
app.py
Video proctoring
- Video endpoint
app.py - Behavior detection
app.py
Persistence
- SQLite access
database.py - Exam database
logreg.db - Teacher DB helper
teacherdb.py - Teacher database
tealogreg.db
Other components
- Student
- Teacher
- Webcam
Connections 15
- Student → Flask routes: uses routes
README.md - Teacher → Flask routes: uses routes
README.md - Flask routes → Account access: dispatches
app.py - Flask routes → Web views: renders
app.py - Flask routes → Exam management: dispatches
README.md - Flask routes → Exam attempt: dispatches
README.md - Flask routes → Score reporting: dispatches
app.py - Flask routes → Video endpoint: routes to
app.py - Video endpoint → Behavior detection: generates frames
app.py - Webcam → Video endpoint: supplies video
app.py - Flask routes → SQLite access: uses
app.py - SQLite access → Exam database: opens
database.py - Exam management → Exam database: reads and writes
README.md - Exam attempt → Exam database: reads questions
app.py - Score reporting → Exam database: saves scores
app.py