Skip to content

AlexanderP/tesseract-appimage

Repository files navigation

Introduction

The tesseract-ocr AppImage is built on Ubuntu 18.04, using Docker container that provides all the required up-to-date dependencies.

Instruction

  1. Download AppImage from releases page
  2. Open your terminal application, if not already open
  3. Browse to the location of the AppImage
  4. Make the AppImage executable:
    $ chmod a+x tesseract*.AppImage
  5. Run it:
    ./tesseract*.AppImage -l eng page.tif page.txt

Building

  1. Cloning a Git repository:
    git clone https://github.com/AlexanderP/tesseract-appimage.git
    cd tesseract-appimage && git submodule update --init
    cd tesseract && git submodule update --init test
    cd ..
  2. Create Docker image:
    docker build -t tess_buildenv .
  3. Run build.sh:
    docker run --rm -v $PWD:/build --device=/dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined tess_buildenv bash build.sh -l "spa fin por fra rus deu"
  4. Run AppImage:
    ./tesseract*.AppImage Apache.tif -