Stefan Weil 6f2f310fdf Remove redundant method from class GenericVector 1 year ago
..
fuzzers 6ce1a29d5a Update fuzzer code to use TESSERACT_FUZZER_WIDTH, TESSERACT_FUZZER_HEIGHT 1 year ago
syntaxnet 0702194246 Add code from tensorflow/models 1 year ago
third_party 0702194246 Add code from tensorflow/models 1 year ago
util aa54bf0f8b Fix code from tensorflow/models/research/syntaxnet/util/utf8 1 year ago
Makefile.am 688f6490bb Fix broken build for pango_font_info_test 1 year ago
README.md 3762feb200 Provide more details for sucessfull running of unittests. 1 year ago
apiexample_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
applybox_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
baseapi_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
baseapi_thread_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
bitvector_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
cleanapi_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
colpartition_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
commandlineflags_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
cycletimer.h d8fdbdb9fd CycleTimer: Add missing initialization (CID 1396168) 2 years ago
dawg_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
denorm_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
equationdetect_test.cc 2833db7c67 unittest: Fix and enable equationdetect_test 1 year ago
fileio_test.cc 420a0286fd unittest: Add fileio_test 2 years ago
heap_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
imagedata_test.cc eec9c96767 Remove member functions STRING::string and StringParam::string (continued) 1 year ago
include_gunit.h b00e53fabf unittest: Fix and enable stridemap_test 1 year ago
indexmapbidi_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
intfeaturemap_test.cc 59e31e958b Fix more build error for compilation without legacy engine 2 years ago
intsimdmatrix_test.cc dfdc2abef0 unittest: Improve logging for intsimdmatrix_test 1 year ago
lang_model_test.cc 1ac76d8825 Partially fix and enable more unittests 2 years ago
layout_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
ligature_table_test.cc 3c507100c6 unittest: Fix and enable ligature_table_test 1 year ago
linlsq_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
loadlang_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
log.h cf46eaeac8 unittest: Fix and enable baseapi_thread_test 1 year ago
lstm_recode_test.cc 1ac76d8825 Partially fix and enable more unittests 2 years ago
lstm_squashed_test.cc 1ac76d8825 Partially fix and enable more unittests 2 years ago
lstm_test.cc eec9c96767 Remove member functions STRING::string and StringParam::string (continued) 1 year ago
lstm_test.h e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
lstmtrainer_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
mastertrainer_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
matrix_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
networkio_test.cc 4e576f844c unittest: Fix and enable networkio_test 1 year ago
normstrngs_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
normstrngs_test.h e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
nthitem_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
osd_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
pagesegmode_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
pango_font_info_test.cc 40c1cf671f unittest: Fix and enable pango_font_info_test 1 year ago
paragraphs_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
params_model_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
progress_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
qrsequence_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
recodebeam_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
rect_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
resultiterator_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
scanutils_test.cc d40a2423e8 unittest: Fix two issues reported by Coverity Scan (CID 1402761, 1402755) 1 year ago
shapetable_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
stats_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
stridemap_test.cc b00e53fabf unittest: Fix and enable stridemap_test 1 year ago
stringrenderer_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
tablefind_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
tablerecog_test.cc 6f2f310fdf Remove redundant method from class GenericVector 1 year ago
tabvector_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
tatweel_test.cc 6668f2fc9e unittest: Fix and enable tatweel_test 1 year ago
textlineprojection_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
tfile_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
unichar_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
unicharcompress_test.cc e3e7a9bf33 Use #include <tesseract/*.h> for unittest 1 year ago
unicharset_test.cc 8e7b1119b5 Run more unittests with the user's locale 2 years ago
validate_grapheme_test.cc d97f67da63 unittest: Fix and enable validate_grapheme_test 2 years ago
validate_indic_test.cc 611d5e6358 unittest: Fix and enable validate_indic_test 2 years ago
validate_khmer_test.cc d67287a5d9 unittest: Fix and enable validate_khmer_test 2 years ago
validate_myanmar_test.cc a6da64234e unittest: Fix and enable validate_myanmar_test 2 years ago
validator_test.cc 9e66fb918f unittest: Format code 2 years ago

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
    ├── 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