File size: 900 Bytes
431e767 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
#!/bin/bash
# =============================================
# INSTALL ALL DEPENDENCIES FOR DOCUMENT PROCESSING
# =============================================
# 1. Install system dependencies (OCR, PDF, OpenCV)
sudo apt-get update && sudo apt-get install -y \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-ben \
tesseract-ocr-hin \
tesseract-ocr-urd \
poppler-utils \
libsm6 \
libxext6 \
libxrender-dev \
libzbar0 \
antiword \
unrtf
# 2. Install Python packages
pip install --upgrade \
flask \
pdfplumber \
pdf2image \
pillow \
pytesseract \
opencv-python-headless \
numpy \
pandas \
python-docx \
openpyxl \
waitress \
flask-httpauth \
flask-cors \
easyocr \
torch \
pyzbar \
textract \
transformers \
pdfminer.six
echo "✅ All dependencies installed successfully!"
|