tesseract/unittest
Stefan Weil 135a18f564 Add more list tests
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-26 22:39:06 +01:00
..
fuzzers [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
syntaxnet [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
third_party/utf [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
util/utf8 [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
apiexample_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
applybox_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
baseapi_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
baseapi_thread_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
bitvector_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
capiexample_c_test.c [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
capiexample_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
cleanapi_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
colpartition_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
commandlineflags_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
cycletimer.h [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
dawg_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
denorm_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
doubleptr.h Replace more GenericVector by std::vector for src/unittest 2021-03-18 15:32:18 +01:00
equationdetect_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-auto') 2021-03-22 09:02:57 +01:00
fileio_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
heap_test.cc Replace some snprintf by std::to_string and modernize more code 2021-03-24 08:01:59 +01:00
imagedata_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-equals-*') 2021-03-22 09:02:57 +01:00
include_gunit.h [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
indexmapbidi_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
intfeaturemap_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
intsimdmatrix_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
lang_model_test.cc Fix some compiler warnings 2021-03-22 09:15:09 +01:00
layout_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
ligature_table_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
linlsq_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-emplace') 2021-03-22 09:02:57 +01:00
list_test.cc Add more list tests 2021-03-26 22:39:06 +01:00
loadlang_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
log.h [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
lstm_recode_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
lstm_squashed_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
lstm_test.cc Fix some compiler warnings 2021-03-22 10:36:38 +01:00
lstm_test.h Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
lstmtrainer_test.cc Fix some compiler warnings 2021-03-22 09:15:09 +01:00
mastertrainer_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
matrix_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
networkio_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
normstrngs_test.cc Modernize code (clang-tidy -checks='-*,modernize-loop-convert') 2021-03-22 09:02:51 +01:00
normstrngs_test.h [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
nthitem_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
osd_test.cc [unittest] Use more smart ptrs, more std::make_unique instead of .reset(new T()). 2021-03-14 23:06:19 +03:00
pagesegmode_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
pango_font_info_test.cc Modernize code (clang-tidy -checks='-*,modernize-loop-convert') 2021-03-22 09:02:51 +01:00
paragraphs_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
params_model_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
progress_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
qrsequence_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
README.md Provide more details for sucessfull running of unittests. 2019-10-20 22:15:21 +02:00
recodebeam_test.cc Fix some compiler warnings 2021-03-22 09:15:09 +01:00
rect_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
resultiterator_test.cc Fix some compiler warnings 2021-03-22 10:36:38 +01:00
scanutils_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
shapetable_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
stats_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
stridemap_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
stringrenderer_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
tablefind_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
tablerecog_test.cc Fix some compiler warnings 2021-03-22 09:15:09 +01:00
tabvector_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
tatweel_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
tesseract_leaksanitizer.supp Fix Memory leak in ligature_table_test 2021-01-24 18:17:06 +01:00
textlineprojection_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
tfile_test.cc Fix some compiler warnings 2021-03-22 09:15:09 +01:00
unichar_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
unicharcompress_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
unicharset_test.cc Fix compiler warnings (mostly -Wsign-compare) 2021-03-21 09:29:34 +01:00
validate_grapheme_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
validate_indic_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
validate_khmer_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
validate_myanmar_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
validator_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00

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
    ├── abseil
    ...
    ├── test
    ├── unittest
    └── 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