tesseract/unittest
Stefan Weil 0401b9470c Fix some typos (most found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-11 11:06:36 +02:00
..
fuzzers Fix broken build for fuzzer 2021-04-09 08:05:55 +02: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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03:00
applybox_test.cc Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03:00
baseapi_test.cc Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03:00
baseapi_thread_test.cc Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 [elist2] Convert macros to template. Remove source file macro ELIST2IZE. 2021-04-07 00:15:01 +03: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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03:00
mastertrainer_test.cc Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03:00
pagesegmode_test.cc Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 Fix some typos (most found by codespell) 2021-04-11 11:06:36 +02:00
params_model_test.cc [clang-format] Format unit tests. 2021-03-13 00:06:34 +03:00
progress_test.cc Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03:00
qrsequence_test.cc Modernize code (clang-tidy -checks='-*,google-readability-braces-around-statements') 2021-03-22 09:03:51 +01:00
README.md Fix some typos (most found by codespell) 2021-04-11 11:06:36 +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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 Basic usage of new Image class. Only pixDestroy is wrapped at the moment. 2021-03-31 22:39:43 +03: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 Add Image::clone(). 2021-04-01 17:06:30 +03: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