Add multi-camera support and CSI camera server

- main_multi.py: Multi USB camera support with ID-based endpoints
  - Config via CAMERAS env: '{"basement": 0, "basement2": 1}'
  - Endpoints: /snapshot (default), /snapshot/{cam_id}

- server-csi/: New server for Pi CSI ribbon cameras (IR support)
  - Auto-detects picamera2/picamera/libcamera-still
  - IR_MODE and ROTATION settings
  - Includes setup.sh for easy Pi deployment

Built with 💕 by Vixy 🦊
This commit is contained in:
Alex Kazaiev
2025-12-29 11:37:11 -06:00
parent e31eb49d5a
commit 37a2f2dcd6
6 changed files with 651 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# vixy-vision CSI Camera Server Requirements
# Web framework
fastapi>=0.100.0
uvicorn[standard]>=0.22.0
# Config
python-dotenv>=1.0.0
# Camera libraries (install what's appropriate for your Pi):
# For Pi OS Bookworm/Bullseye (Pi 4/5): pip install picamera2
# For older Raspbian (Pi 3): pip install picamera
# Or use libcamera-still/raspistill command fallback (no pip needed)