tesseract/unittest
luoyaoming 29b002c6c9 Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
..
fuzzers Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
syntaxnet Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
third_party/utf Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
util/utf8 Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
README.md Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
apiexample_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
applybox_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
baseapi_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
baseapi_thread_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
bitvector_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
capiexample_c_test.c Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
capiexample_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
cleanapi_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
colpartition_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
commandlineflags_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
cycletimer.h Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
dawg_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
denorm_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
doubleptr.h Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
equationdetect_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
fileio_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
heap_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
imagedata_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
include_gunit.h Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
indexmapbidi_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
intfeaturemap_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
intsimdmatrix_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
lang_model_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
layout_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
ligature_table_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
linlsq_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
list_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
loadlang_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
log.h Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
lstm_recode_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
lstm_squashed_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
lstm_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
lstm_test.h Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
lstmtrainer_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
mastertrainer_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
matrix_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
networkio_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
normstrngs_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
normstrngs_test.h Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
nthitem_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
osd_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
pagesegmode_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
pango_font_info_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
paragraphs_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
params_model_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
progress_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
qrsequence_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
recodebeam_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
rect_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
resultiterator_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
scanutils_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
shapetable_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
stats_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
stridemap_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
stringrenderer_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
tablefind_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
tablerecog_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
tabvector_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
tatweel_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
tesseract_leaksanitizer.supp Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
textlineprojection_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
tfile_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
unichar_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
unicharcompress_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
unicharset_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
validate_grapheme_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
validate_indic_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
validate_khmer_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
validate_myanmar_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00
validator_test.cc Import Upstream version 5.3.4 2024-04-24 17:51:26 +08:00

README.md

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

Run tests

To run the tests, do the following in tesseract folder

autoreconf -fiv
git submodule update --init
export TESSDATA_PREFIX=/prefix/to/path/to/tessdata
make check