classpulse-edge / README.md
thegoatcc's picture
Upload ClassPulse Edge codebase, Dockerfile, and model weights
af70f62 verified
|
Raw History Blame Contribute Delete
1.81 kB
---
license: mit
library_name: ultralytics
tags:
- computer-vision
- edge-ai
- face-recognition
- yolov8
- classroom-analytics
- hailo
---
# ClassPulse Edge
**ClassPulse Edge** is a modular, privacy-first classroom analytics and attendance management system built for edge deployment (Raspberry Pi 5 + Hailo-8/8L or PC CPU/GPU) with a live FastAPI dashboard.
## Architecture & Key Features
* **Privacy-Preserving Biometric Attendance:** YuNet + SFace cosine similarity matching (>= 0.45, 2-frame consensus) against local enrolled embeddings, with a continuous 15-frame / 2-minute retry loop for unrecognized tracks during active sessions.
* **Live Attention Analytics:** Real-time head-pose and landmark analysis (6DRepNet ONNX + MediaPipe Face Landmarker) with per-student attention percentages and live ticking attention timers.
* **Behavioral Detection & Bounded Proof Clips:**
* **Phone Usage:** Flags phone holds exceeding 10 seconds, tracks cumulative usage duration, and records a 5-second browser-playable proof clip.
* **Consumption Review:** Triggers exclusively on visible smoke or drinking behavior and saves bounded (<= 7s) clips for review.
* **Included Models (`models/`):**
* `yolov8n.pt` & `yolov8n-pose.pt` (Person & pose tracking)
* `smoking_yolov8.pt` (Smoke detection)
* `face_detection_yunet_2023mar.onnx` & `face_recognition_sface_2021dec.onnx` (PC face detection & embeddings)
* `head_pose_6drepnet.onnx` & `face_landmarker.task` (Head pose & gaze/eye landmarks)
* `yolov8n_classroom.hef`, `yolov8s_pose.hef`, `scrfd_10g.hef`, `arcface_mobilefacenet.hef` (Hailo-8/8L compiled weights for Raspberry Pi 5)
## Quick Start
git clone https://huggingface.co/thegoatcc/classpulse-edge
cd classpulse-edge
pip install -r requirements.txt
python main.py