Thanks to visit codestin.com
Credit goes to github.com

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

Commit cfb407e

Browse files
authored
Create README.md
1 parent 73bc6b5 commit cfb407e

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

with_cmake/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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``

0 commit comments

Comments
 (0)