Template for Discord bots with computer vision
SVA MFA Interaction Design ยท Winter 2026
| Camera | Hostname | RAM | Access |
|---|---|---|---|
| Orbit | orbit | 16GB | SSH + VNC |
| Gravity | gravity | 16GB | SSH + VNC |
| Horizon | horizon | 16GB | SSH + VNC |
VNC: one desktop user at a time ยท SSH: multiple users OK
Your Laptop
scpRaspberry Pi
.env with secretsSee WORKFLOW.md for details.
| Method | Best For | Command |
|---|---|---|
| SSH | Terminal access | ssh orbit |
| VNC | Desktop GUI | RealVNC Viewer โ orbit |
| VS Code | Full dev environment | Remote-SSH extension |
Then run any detector:
# Person detection
python3 person_detector.py --display
# Fatigue detection with DM notifications
python3 fatigue_detector.py --dm
# Gaze estimation
python3 gaze_detector.py --display --log
| Flag | What It Does |
|---|---|
--display | Show live video window (VNC/X11) |
--log | Save events to timestamped log file |
--discord | Send notifications to class channel |
--dm | Send personal DM notifications |
--threshold 0.7 | Set detection sensitivity (0.0โ1.0) |
Combine flags: python3 fatigue_detector.py --display --log --dm
/opt/oak-shared/
โโโ venv/ # Shared Python environment
~/oak-projects/
โโโ person_detector.py # Person detection (YOLO)
โโโ fatigue_detector.py # Fatigue detection (EAR)
โโโ gaze_detector.py # Gaze estimation
โโโ whiteboard_reader.py # OCR text detection
โโโ discord_bot.py # Bot for commands
โโโ utils/ # Helper modules
โโโ depthai_models/ # Model YAML configs
โโโ .env # Your Discord tokens
โโโ *.log # Detection logs
# Activate environment
activate-oak
# Check if camera is connected
python3 -c "import depthai as dai; \
print(dai.Device.getAllAvailableDevices())"
# View logs
tail -f ~/oak-projects/*.log
# Stop a running script
Ctrl+C
Ctrl+Shift+P โ "Remote-SSH: Connect to Host"orbit (or gravity, horizon)/home/[username]/oak-projects/opt/oak-shared/venv/bin/pythonSee NEXT_IDEAS.md for detailed project ideas.
| Quick Start | Student Quickstart Slides |
| Commands | Cheatsheet Slides |
| Versions | Working Versions |
| DepthAI Docs | docs.luxonis.com |
| GitHub Repo | kandizzy/smart-objects-cameras |
Clone the repo, connect to a Pi, and run your first detector.