Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure and build Tesseract OCR C++ using Visual Studio 2015 x64 on Windows 10

I am trying to run the VS2015_Tesseract example in Tesseract OCR Library.

I always get the following error when I try to open the file:

Could not find a part of the path

Currently I am working with Visual Studio 2015 on Windows 10 (64 bit).

Please provide the full information on how I can configure the Tesseract OCR C++ library on Visual Studio 2015 Windows 10 (64 bit).

You also can provide any reference tutorial links.

like image 557
Hassan ALi Avatar asked Sep 05 '16 14:09

Hassan ALi


People also ask

How do I add tesseract to Visual Studio?

In Visual Studio, create a new empty Visual Studio project. Add a new source file to your project in order to exercise the tesseract functionality. Set up the include and data folders in your Visual Studio solution folder. 'tessdata' contains the tesseract data file(s) mentioned in Step 5.

How do you make a tesseract in Windows?

To build a self-contained tesseract.exe executable (without any DLLs or runtime dependencies), use Vcpkg as above with the following command: vcpkg install tesseract:x64-windows-static for 64-bit. vcpkg install tesseract:x86-windows-static for 32-bit.

How do I install tesseract source code?

This is a proven build sequence: cd tesseract ./autogen.sh mkdir -p bin/release cd bin/release ../../configure --disable-openmp --disable-shared 'CXXFLAGS=-g -O2 -fno-math-errno -Wall -Wextra -Wpedantic' # Build tesseract and training tools. Run `make` if you don't need the training tools. make training cd ../..


1 Answers

  1. You have to download the vs2015_Tesseract or simply run the following git command in working directory:

    git clone https://github.com/peirick/VS2015_Tesseract.git

  2. Run the build_tesseract.bat file.

  3. Activate tesseract as the startup project.

like image 77
Hassan ALi Avatar answered Sep 21 '22 22:09

Hassan ALi