Code Monkey home page Code Monkey logo

tesseract-ocr-compilation's Introduction

Tesseract 4 OCR Compilation - Docker Container

This repository contains scripts and definition of Docker container that helps to compile Tesseract 4. If you are looking for ready to use Teserract 4 Runtime Environment container (and don't want to compile it) please take look at tesseractshadow/tesseract4re.

If you are not familiar with Docker please read Docker - Get Started. This compilation procedure is based on:

Compilation

Prerequisites:

Scripted steps (tested as a root sudo su):

  1. ./scripts/1-pull-container.sh - pull tesseractshadow/tesseract4cmp image from Docker Hub (automated build using dockerfile from this repository).
  2. ./scripts/2-remove-container.sh - (optional) remove t4cmp if it already exists and you want to start from begining (note, all compilation results stored inside container will be lost).
  3. ./scripts/3-run-new-container.sh - run the new t4cmp container.
  4. ./scripts/4-update-src.sh - update source code of Leptionica and Tesseract.
  5. ./scripts/5-compile-src.sh - compile Leptionica and Tesseract, it may take tens of minutes
  6. ./scripts/6-test-ocr.sh - do some OCR tests
  7. ./scripts/7-build-pkg.sh - (optional) build Leptionica and Tesseract packages and copy them outside t4cmp container

Bulid docker container yourself

  1. Clone this repository to your $T4_WORKSPACE
  2. Execute docker build -t tesseractshadow/tesseract4cmp $T4_WORKSPACE (or ./dockerfile.build.sh)

If something went wrong

You can get into the container using SSH:

  • localhost:4022,
  • user: root,
  • password: root

tesseract-ocr-compilation's People

Contributors

kinjelom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.