The first one must be to download all the relevant code, GitHub is the most convenient https://github.com/tesseract-ocr/tesseract
Point 1, Cppan C + + Chinese Management Pack, very convenient, need to turn-wall, installation package also need. This should be popular, it will definitely fire, because it is too convenient, on Windows like Linux installed C + + dependencies, but also a cross-platform solution! (Https://raw.githubusercontent.com/cppan/binaries/master/cppan-master-Windows-client.zip)
Point 2, install CMake, and add environment variables
cd tesseractcppanmkdir build && cd buildcmake ..
Windowsmaster Branch, 3.05 and laterusing tesseract
!!! IMPORTANT!!! To use Tesseract in your application (to include Tess or to link it into the Your app) see this very simple example https://gi Thub.com/tesseract-ocr/tesseract/wiki/user-app-example.
Build the latest library
- Download the latest Cppan (c + + Archive Network
https://cppan.org/
) client from https://cppan.org/client/
.
- Run
cppan --build pvt.cppan.demo.google.tesseract.tesseract-master
.
Build Training Tools
Today It is possible to build a full set of Tess training tools on Windows with Visual Studio. The latest versions (WIN10, vs2015/vs2017) is preferable.
To does this:
- Download the latest Cppan (c + + Archive Network
https://cppan.org/
) client from https://cppan.org/client/
.
- Run
cppan --build pvt.cppan.demo.google.tesseract-master
.
Develop tesseract
For development purposes of Tesseract itself do the next steps:
- Download and install Git, CMake and put them in PATH.
- Download the latest Cppan (c + + Archive Network
https://cppan.org/
) client from https://cppan.org/client/
. Cppan is a source package distribution system. ADD Cppan client in PATH too. (VS2015 redist is required.)
- If you had a release archive, unpack it to
tesseract
dir.
If you ' re using master Branch (4.0) run
git clone https://github.com/tesseract-ocr/tesseract tesseract
Run
cd tesseractcppanmkdir build && cd buildcmake ..
Build a solution ( tesseract.sln
) in your Visual Studio version.
For development purposes of training tools after cloning a repo from previous paragraph, run
cppan --build .
You'll see a solution link appeared in the root directory of tesseract.
Building for x64 platform
If you ' re building with Cppan+cmake, run CMake as follows:
mkdir win64 && cd win64cppan ..cmake .. -G "Visual Studio 14 2015 Win64"
If you ' re building with Cppan, edit cppan.yml and uncomment this line:
#generator: Visual Studio 14 2015 Win64 -> generator: Visual Studio 14 2015 Win64
Then run cppan --generate .
-it'll create a solution link for you.
(for VS2017, use ' instead of ' 14 2015 '.)
3.05
If you have Visual Studio, checkout the Https://github.com/peirick/VS2015_Tesseract repository for Visual Studio 2015 Projects for TESSEARCT and dependencies. and click on Build_tesseract.bat. After this you still need to download the language packs.
3.03rc-1
Has a look at blogging how to build tesseract 3.03 with Visual Studio 2013.
3.02
For TESSERACT-OCR 3.02-follow instruction in Visual Studio, Developer Notes for TESSERACT-OCR.
3.01
Download these packages from the Downloads Archive on SourceForge page:
tesseract-3.01.tar.gz
-Tesseract Source
tesseract-3.01-win_vs.zip
-Visual Studio (&) solution with necessary libraries
tesseract-ocr-3.01.eng.tar.gz
-中文版 language file for tesseract (or download other language training file)
Unpack them to one directory (e.g. tesseract-3.01
). Note that tesseract-ocr-3.01.eng.tar.gz
names the root directory ‘tesseract-ocr‘
instead of ‘tesseract-3.01‘
.
Windows relevant files is located in vs2008 directory (e.g. ' tesseract-3.01\vs2008 '). The same build process as usual applies:open Tesseract.sln with vc++express, and build all (or just tesseract.) It should compile (in least release mode) without have to install anything further. The DLL dependencies and Leptonica are included. Output would be in tesseract-3.01\vs2008\bin (or Tesseract-3.01\vs2008\bin.rd or tesseract-3.01\vs2008\bin.dbg based on CO Nfiguration build).
Windows vs Compilation TESSERACT-OCR