Spaces:
Sleeping
Sleeping
# Update and install dependencies | |
apt-get update | |
apt-get install -y wget lsb-release build-essential | |
# Download and install Tesseract from source | |
wget https://github.com/tesseract-ocr/tesseract/releases/download/4.1.1/tesseract-4.1.1.tar.gz | |
tar -xvzf tesseract-4.1.1.tar.gz | |
cd tesseract-4.1.1 | |
./configure | |
make | |
make install | |
# Clean up the tarball and directory | |
cd .. | |
rm -rf tesseract-4.1.1 tesseract-4.1.1.tar.gz | |
# Ensure tesseract is installed | |
which tesseract | |
chmod +x install.sh | |