Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
tesseract — Open-source OCR engine with LSTM neural network models for extracting text from images and scanned documents in 100+ languages via CLI, C/C++ libraries, and APIs. | Kitploit
Tools/GitHubGitHub/tesseract-ocr/tesseract
General Purpose UtilitiesMachine LearningCAPTCHA BypassTop in CAPTCHA Bypass #3
GitHubtesseract-ocr/tesseract

tesseract

Open-source OCR engine with LSTM neural network models for extracting text from images and scanned documents in 100+ languages via CLI, C/C++ libraries, and APIs.

View Repository
77.1k10.8k8210h 46m agoReviewed by Kitploit
Website

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Unit Testing for Tesseract

Requirements

Files and structure


├── langdata_lstm
│   ├── common.punc
│   ├── common.unicharambigs
│   ├── desired_bigrams.txt
│   ├── eng
│   │   ├── desired_characters
│   │   ├── eng.config
│   │   ├── eng.numbers
│   │   ├── eng.punc
│   │   ├── eng.singles_text
│   │   ├── eng.training_text
│   │   ├── eng.unicharambigs
│   │   ├── eng.wordlist
│   │   └── okfonts.txt
│   ├── extended
│   │   └── extended.config
│   ├── extendedhin
│   │   └── extendedhin.config
│   ├── font_properties
│   ├── forbidden_characters_default
│   ├── hin
│   │   ├── hin.config
│   │   ├── hin.numbers
│   │   ├── hin.punc
│   │   └── hin.wordlist
│   ├── kan
│   │   └── kan.config
│   ├── kor
│   │   └── kor.config
│   ├── osd
│   │   └── osd.unicharset
│   └── radical-stroke.txt
├── tessdata
│   ├── ara.traineddata
│   ├── chi_tra.traineddata
│   ├── eng.traineddata
│   ├── heb.traineddata
│   ├── hin.traineddata
│   ├── jpn.traineddata
│   ├── kmr.traineddata
│   ├── osd.traineddata
│   └── vie.traineddata
├── tessdata_best
│   ├── eng.traineddata
│   ├── fra.traineddata
│   ├── kmr.traineddata
│   └── osd.traineddata
├── tessdata_fast
│   ├── eng.traineddata
│   ├── kmr.traineddata
│   ├── osd.traineddata
│   └── script
│       └── Latin.traineddata
└── tesseract
    ...
    ├── test
    ├── unittest
    │   └── third_party/googletest
    └── VERSION

Fonts

  • Microsoft fonts: arialbi.ttf, times.ttf, verdana.ttf - installation guide
  • ae_Arab.ttf
  • dejavu-fonts: DejaVuSans-ExtraLight.ttf
  • Lohit-Hindi.ttf
  • UnBatang.ttf

Run tests

CMake

By default, CMake uses the unittest/third_party/googletest submodule:

git submodule update --init unittest/third_party/googletest
cmake -S . -B build -DBUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure

To use an installed GoogleTest package instead, install both GoogleTest and GoogleMock (for example, libgtest-dev and libgmock-dev on Debian/Ubuntu) and configure with -DUSE_SYSTEM_GTEST=ON:

cmake -S . -B build -DBUILD_TESTS=ON -DUSE_SYSTEM_GTEST=ON

If the package is installed outside the standard search paths, add its prefix to CMAKE_PREFIX_PATH, or set GTest_DIR to the directory containing GTestConfig.cmake. The installed package must provide the GTest::gtest_main and GTest::gmock targets. With CMake 3.22, use a package that provides GTestConfig.cmake; CMake's module-based GoogleMock discovery requires 3.23 or newer.

This replaces only the testing framework, not the test data, language models, or fonts listed above. Those files are still required by the relevant tests. When tests are requested but the selected framework is unavailable, configuration fails rather than silently omitting the tests.

Autotools

To run the tests, do the following in tesseract folder

autoreconf -fiv
git submodule update --init
git clone https://github.com/egorpugin/tessdata tessdata_unittest --depth 1
cp tessdata_unittest/fonts/* test/testing/
mv tessdata_unittest/* ../
export TESSDATA_PREFIX=/prefix/to/path/to/tessdata
make check
Download Tool