tesseract/unittest
Stefan Weil 6cb49dcebd Fix more code style issues (reported by Codacy)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-06-11 20:02:39 +02:00
..
fuzzers Use static linker flags for OSS-Fuzz build 2022-03-03 12:51:46 +01:00
syntaxnet unittest: Enable more code for tatweel_test without requiring Tensorflow 2021-08-12 14:12:53 +02:00
third_party Update submodule googletest to release v1.11.0 2022-01-01 18:50:24 +01:00
util/utf8 unittest: Enable more code for tatweel_test without requiring Tensorflow 2021-08-12 14:12:53 +02:00
apiexample_test.cc Add test for TessBaseAPI::ClearPersistentCache to unit tests 2021-05-17 09:28:21 +02:00
applybox_test.cc Fix compiler warnings [-Wunreachable-code-return] 2024-05-20 07:46:07 +02:00
baseapi_test.cc Fix compiler warnings [-Wunreachable-code-return] 2024-05-20 07:46:07 +02:00
baseapi_thread_test.cc unittest: Fix compiler warning for unused function 2021-08-07 18:14:50 +02: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 unittest: Remove dependency on absl::GetCurrentTimeNanos() 2021-08-06 20:59:09 +02: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 unittest: Remove dependency on absl::StrSplit() 2021-08-06 20:59:09 +02: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 unittest: Remove dependency on absl::StrCat() 2021-08-06 20:59:09 +02:00
include_gunit.h unittest: Enable more code for tatweel_test without requiring Tensorflow 2021-08-12 14:12:53 +02: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 Add TFloat data type for neural network 2021-07-24 15:14:17 +02:00
lang_model_test.cc unittest: Remove dependency on absl::StrCat() 2021-08-06 20:59:09 +02: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 Disable CI checks which are no longer valid with NFC normalization 2021-10-27 19:15:44 +02: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 Rename frk -> deu_latf (ISO 639-3, ISO 15924) 2024-03-09 11:25:28 +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 Remove scripts for training 2021-05-18 10:47:44 +02:00
lstm_test.h Improve format of logging from lstmtraining 2023-05-05 12:28:24 +02: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 Simplify function LoadTrainingData and fix mastertrainer_test 2021-09-17 08:24:50 +02: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 unittest: Remove dependency on absl::StrFormat() 2021-08-06 20:59:09 +02:00
normstrngs_test.h unittest: Remove dependency on absl::StrJoin() 2021-08-06 20:59:09 +02: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 pagesegmode_test.cc: Disable some code for disable legacy build (#3626) 2021-11-04 12:49:32 +01:00
pango_font_info_test.cc unittest: Remove dependency on absl::StrCat() 2021-08-06 20:59:09 +02:00
paragraphs_test.cc unittest: Remove dependency on absl::StrSplit() 2021-08-06 20:59:09 +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 more code style issues (reported by Codacy) 2024-06-11 20:02:39 +02:00
recodebeam_test.cc unittest: Remove some dependencies on abseil 2021-08-06 20:59:09 +02:00
rect_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
resultiterator_test.cc Fix resultiterator_test with --disable-legacy 2021-11-20 14:58:36 +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 unittest: Remove dependency on absl::StrFormat() 2021-08-06 20:59:09 +02:00
stats_test.cc Fix old TODO (STATS::rangemax_) 2022-02-03 09:15:31 +01:00
stridemap_test.cc Modernize code (clang-tidy -checks='-*,modernize-use-override') 2021-03-22 09:02:13 +01:00
stringrenderer_test.cc Disable CI checks which are no longer valid with NFC normalization 2021-10-27 19:15:44 +02: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 unittest: Enable more code for tatweel_test without requiring Tensorflow 2021-08-12 14:12:53 +02:00
tesseract_leaksanitizer.supp Fix Memory leak in ligature_table_test 2021-01-24 18:17:06 +01:00
textlineprojection_test.cc unittest: Remove some dependencies on abseil 2021-08-06 20:59:09 +02: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 Fix some typos 2024-02-22 07:55:33 +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
    ...
    ├── 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