feat: OCR (tesseract) + remplacement du texte dans les images (typesetting Pillow) — SCAL-17

- scalper ocr / scalper typeset + --with-ocr dans run et POST /run
- gate légal: legal.allows_derivatives — réservé domaine public/CC/contenu propre (mangadex exclu du traitement d'images)
- Dockerfile: tesseract-ocr + fonts-dejavu + extra [ocr] (pillow, pytesseract)
- 47 tests OK
This commit is contained in:
Vibe committed 2026-11-16 15:13:24 +00:00
1 parent 5a2f281217
commit 82a6828597
11 files changed
+364 -3

No files matched your search

+5 -1
View File
@@ -1,11 +1,15 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml README.md ./
COPY src ./src
RUN pip install --no-cache-dir .
RUN pip install --no-cache-dir ".[ocr]"
RUN useradd -m scalper && mkdir -p /app/data /app/out && chown -R scalper:scalper /app
USER scalper