Version final

This commit is contained in:
Jhonathan Guevara 2025-12-31 15:35:28 -05:00
parent 0287cd6931
commit ff75e8c790
Signed by: jhonathan_guevara
GPG Key ID: 619239F12DCBE55B

View File

@ -341,3 +341,36 @@ else
fi
```
**Instalacion OCR en Alpine (para el autorrelleno en servidor)**
```bash
apk update
apk add --no-cache \
tesseract-ocr \
tesseract-ocr-data-spa \
tesseract-ocr-data-eng \
python3 py3-pip py3-virtualenv \
build-base python3-dev musl-dev \
libffi-dev openssl-dev zlib-dev \
jpeg-dev tiff-dev freetype-dev lcms2-dev openjpeg-dev
python3 -m venv /opt/saludut/venv
. /opt/saludut/venv/bin/activate
pip install --upgrade pip
pip install pdfplumber pymupdf pytesseract pillow
```
En `backend/.env`:
```
PYTHON_PATH=/opt/saludut/venv/bin/python
TESSERACT_PATH=/usr/bin/tesseract
TESSDATA_PREFIX=/usr/share/tessdata
```
Verificacion:
```bash
tesseract --list-langs | grep spa
/opt/saludut/venv/bin/python -c "import pytesseract; print(pytesseract.get_tesseract_version())"
```