This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Tesseract Example
2+
3+ A very basic Tesseract-OCR example with C++ Archive Network building.
4+
5+ ## Building
6+
7+ ### Windows
8+
9+ Prerequisites:
10+
11+ 1 . Download git, cmake and add them to PATH
12+ 2 . Download the latest CPPAN (https://cppan.org/ ) client from https://cppan.org/client/
13+ 3 . Add cppan to PATH too.
14+
15+ ```
16+ git clone https://github.com/cppan/tesseract_example tesseract_example
17+ cd tesseract_example
18+ cppan
19+ mkdir build && cd build
20+ cmake ..
21+ cmake --build . --config Release
22+ ```
23+
24+ ### Linux
25+
26+ Prerequisites:
27+
28+ 1 . Install git, cmake, the latest CPPAN (https://cppan.org/ ) client.
29+ 2 . Run
30+
31+ ```
32+ git clone https://github.com/cppan/tesseract_example tesseract_example
33+ cd tesseract_example
34+ cppan
35+ mkdir build && cd build
36+ cmake ..
37+ make -j4
38+ ```
39+
40+ ## Testing
41+
42+ 1 . Download tesseract english data to ` tessdata ` dir near the ` main ` binary.
43+ 2 . Copy test image ` img/phototest.tif `
44+ 3 . Run `` main phototest.tif ``
You can’t perform that action at this time.
0 commit comments