Skip to content

Commit

Permalink
fix issue 755; add example config files from tesseract manpage
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@894 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
zdenop@gmail.com committed Oct 20, 2013
1 parent fdb1669 commit 53a3e0f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classify/normmatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ FLOAT32 Classify::ComputeNormMatch(CLASS_ID ClassId,
PROTOTYPE *Proto;
int ProtoId;

if (ClassId > NormProtos->NumProtos) {
if (ClassId >= NormProtos->NumProtos) {
ClassId = NO_CLASS;
}

Expand Down
2 changes: 1 addition & 1 deletion dict/trie.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Trie : public Dawg {
};

// Minimum number of concrete characters at the beginning of user patterns.
static const int kSaneNumConcreteChars = 4;
static const int kSaneNumConcreteChars = 0;
// Various unicode whitespace characters are used to denote unichar patterns,
// (character classifier would never produce these whitespace characters as a
// valid classification).
Expand Down
4 changes: 4 additions & 0 deletions tessdata/configs/bazaar
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
load_system_dawg F
load_freq_dawg F
user_words_suffix user-words
user_patterns_suffix user-patterns
2 changes: 2 additions & 0 deletions tessdata/eng.user-patterns
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1-\d\d\d-GOOG-411
www.\n\\\*.com
5 changes: 5 additions & 0 deletions tessdata/eng.user-words
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
the
quick
brown
fox
jumped

0 comments on commit 53a3e0f

Please sign in to comment.