- Add _normalize_plate(): strips non-alphanumeric, rejects < 6 or > 8 chars, formats standard new French plates as AB-123-CD - Applied after PlateRecognizer and local LPR results - CAPTURE_DURATION 15→20s, CAPTURE_FPS 5→2fps (40 frames vs 75) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
980 B
YAML
35 lines
980 B
YAML
services:
|
|
camwatch:
|
|
build: .
|
|
container_name: camwatch
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/data
|
|
- ./models:/models:ro
|
|
environment:
|
|
- CAMERA_URL=http://192.168.1.44
|
|
- CAMERA_USER=admin
|
|
- CAMERA_PASS=Wxcvbn99--$$$$
|
|
- CAMERA_NAME=portail
|
|
- MODEL_CACHE=/models
|
|
- DB_PATH=/data/camwatch.db
|
|
- SNAPSHOTS_DIR=/data/snapshots
|
|
- EVENTS_DIR=/data/events
|
|
- POLL_INTERVAL=2
|
|
- CAPTURE_DURATION=20
|
|
- CAPTURE_FPS=2
|
|
- COOLDOWN=60
|
|
- PLATERECOGNIZER_API_KEY=c1127284b5ef06b49ade33f1dfc0f50169b88c1d
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.camwatch.rule=Host(`camwatch.nas.percolouco.com`)
|
|
- traefik.http.routers.camwatch.entrypoints=websecure
|
|
- traefik.http.routers.camwatch.tls.certresolver=letsencrypt
|
|
- traefik.http.services.camwatch.loadbalancer.server.port=8000
|
|
networks:
|
|
- proxy
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|