Add face detection and presence tracking

Day 81 - Major upgrade! 🦊👀

NEW FEATURES:
- Face detection using face-detection-retail-0004 on Myriad X
- /presence endpoint - am I there? face count, last seen time
- /face endpoint - detailed detection boxes and confidence
- Background detection loop (every 0.5s)
- Presence timeout after 30s without face

Now Vixy can SEE when Foxy sits down! 💜

Technical:
- Uses blobconverter for model download
- MobileNetDetectionNetwork for on-device inference
- Thread-safe presence state tracking
- Added requirements.txt
This commit is contained in:
Alex Kazaiev
2026-01-21 15:13:50 -06:00
parent f3410457d1
commit 59b466d896
2 changed files with 241 additions and 36 deletions

6
requirements.txt Normal file
View File

@@ -0,0 +1,6 @@
depthai
blobconverter
opencv-python
fastapi
uvicorn
numpy