If you have cloned Tesseract from GitHub, you must generate the configure script.
If you have tesseract 4.0x installation in your system, please remove it before new build.
You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x.
Known dependencies for training tools (excluding leptonica):
So, the steps for making Tesseract are:
$ ./autogen.sh $ ./configure $ make $ sudo make install $ sudo ldconfig $ make training $ sudo make training-install
You need to install at least English language and OSD traineddata files to
All language data files can be retrieved from git repository (useful only for packagers!). (Repository is huge - more that 1.2 GB. You do NOT need to download traineddata files for all languages).
$ git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata
You need an Internet connection and curl to compile
because the build will automatically download
jaxb-api-2.3.1.jar and place them to
$ make ScrollView.jar
and follow the instruction on Viewer Debugging.
There is alternative build system based on multiplatform cmake
$ mkdir build $ cd build && cmake .. && make $ sudo make install
See the documentation for more information on this.
Press p or to see the previous file or, n or to see the next file