Instructions to use thegoatcc/classpulse-edge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use thegoatcc/classpulse-edge with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("thegoatcc/classpulse-edge", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
|
Download README.md from thegoatcc/classpulse-edge: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/thegoatcc/classpulse-edge/resolve/main/README.md
- Command line
-
hf download hf://thegoatcc/classpulse-edge/README.md
-
curl -L -o README.md https://huggingface.co/thegoatcc/classpulse-edge/resolve/main/README.md
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 |