How chinmoydeb/ai-exam-proctor works
This is a browser-only exam-proctoring dashboard. A candidate starts a webcam session; the application analyzes frames for face presence and attention, dispatches object detection to a worker, and presents detections and logged incidents in the dashboard. Incident evidence can be downloaded individually or exported as a ZIP. The source excerpts show the main control points, but omit some implementation details; documented capabilities are included where the README establishes them.
Main entry points: main.js Frame Loop · yoloWorker.js YOLO Worker · index.html Dashboard UI · face_landmarker.task Face Model
Components 17
Session and UI
- Dashboard UI
index.html - Session Control
main.js - Webcam Stream
Frame Analysis
- Frame Loop
main.js - Face and Attention
main.js - YOLO Dispatch
main.js - Detection Overlay
main.js
Compliance Evidence
- Violation Logging
main.js - Evidence Snapshot
main.js - Incident Feed
index.html - Image Download
main.js - ZIP Export
main.js
Inference Runtime
- Face Model
models/face_landmarker.task - YOLO Worker
workers/yoloWorker.js - Object Model
models/yolo26s.onnx - Browser Inference Runtime
Other components
- Candidate
Connections 21
- Candidate → Dashboard UI: uses
README.md - Dashboard UI → Session Control: starts controls
main.js - Session Control → Webcam Stream: requests access
main.js - Webcam Stream → Frame Loop: provides frames
- Session Control → Frame Loop: starts loop
main.js - Frame Loop → Face and Attention: dispatches frames
main.js - Face and Attention → Face Model: loads model
main.js - Frame Loop → YOLO Dispatch: dispatches frames
main.js - YOLO Dispatch → YOLO Worker: dispatches inference
main.js - YOLO Worker → Object Model: loads model
- YOLO Worker → Browser Inference Runtime: runs inference
workers/yoloWorker.js - Face and Attention → Browser Inference Runtime: runs inference
- Face and Attention → Violation Logging: logs violations
README.md - YOLO Worker → YOLO Dispatch: returns detections
main.js - YOLO Dispatch → Violation Logging: logs detections
main.js - Frame Loop → Detection Overlay: renders detections
main.js - Violation Logging → Evidence Snapshot: captures evidence
main.js - Violation Logging → Incident Feed: updates feed
README.md - Evidence Snapshot → Image Download: enables download
README.md - Incident Feed → ZIP Export: exports incidents
main.js - Dashboard UI → ZIP Export: triggers export
main.js