- Remplace OpenCV VideoCapture par ffmpeg pour la capture RTSP (plus fiable) - Capture 15s → extrait ~75 frames à 5fps via ffmpeg - Le LPR analyse toutes les frames et garde la meilleure (plaque la plus grande/confiante) - Ajoute CAPTURE_FPS env var Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
341 B
Docker
14 lines
341 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libgl1 libglib2.0-0 libgomp1 ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY app/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app/ .
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|