Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Tesseract Example

Building

Before building take a look at cppan.yml file. Create a local copy of it in your project structure.

Windows

Prerequisites:

  1. Download git, cmake and add them to PATH
  2. Download the latest CPPAN (https://cppan.org/) client from https://cppan.org/client/
  3. Add cppan to PATH too.
git clone https://github.com/cppan/tesseract_example tesseract_example
cd tesseract_example/with_cmake
cppan
mkdir build && cd build
cmake ..
cmake --build . --config Release

Linux

Prerequisites:

  1. Install git, cmake, the latest CPPAN (https://cppan.org/) client.
  2. Run
git clone https://github.com/cppan/tesseract_example tesseract_example
cd tesseract_example/with_cmake
cppan
mkdir build && cd build
cmake ..
make -j4

Testing

  1. Download tesseract english data to tessdata dir near the main binary.
  2. Copy test image phototest.tif to working dir.
  3. Run main phototest.tif