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:
18
server-csi/env.example
Normal file
18
server-csi/env.example
Normal file
@@ -0,0 +1,18 @@
|
||||
# vixy-vision CSI Camera Configuration
|
||||
|
||||
# API Key for authentication (generate with: python3 -c "import secrets; print(secrets.token_urlsafe(32))")
|
||||
API_KEY=your-api-key-here
|
||||
|
||||
# Camera settings
|
||||
CAMERA_WIDTH=1920
|
||||
CAMERA_HEIGHT=1080
|
||||
JPEG_QUALITY=85
|
||||
|
||||
# Camera ID for identification
|
||||
CAMERA_ID=garage
|
||||
|
||||
# Rotation (0, 90, 180, 270)
|
||||
ROTATION=0
|
||||
|
||||
# IR camera mode (disables some auto-exposure features)
|
||||
IR_MODE=true
|
||||
Reference in New Issue
Block a user