From 0f3d33f699001e52ba8ab5a3c6017d447065201a Mon Sep 17 00:00:00 2001 From: Shreeshrii Date: Sun, 22 Apr 2018 22:19:06 +0530 Subject: [PATCH] Change max_pages to zero Fixes https://github.com/tesseract-ocr/tesseract/issues/1149 and https://github.com/tesseract-ocr/tesseract/issues/1508 --- training/tesstrain_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/training/tesstrain_utils.sh b/training/tesstrain_utils.sh index 3c980409db..25f054b3b7 100755 --- a/training/tesstrain_utils.sh +++ b/training/tesstrain_utils.sh @@ -212,7 +212,7 @@ generate_font_image() { common_args+=" --fonts_dir=${FONTS_DIR} --strip_unrenderable_words" common_args+=" --leading=${LEADING}" common_args+=" --char_spacing=${CHAR_SPACING} --exposure=${EXPOSURE}" - common_args+=" --outputbase=${outbase} --max_pages=3" + common_args+=" --outputbase=${outbase} --max_pages=0" # add --writing_mode=vertical-upright to common_args if the font is # specified to be rendered vertically.