From f7ffde99d5cd3bd9c7817d8b1213629efff7dabe Mon Sep 17 00:00:00 2001 From: Shree Date: Fri, 22 Mar 2019 05:34:00 +0000 Subject: [PATCH] add --distort_image --- src/training/tesstrain_utils.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/training/tesstrain_utils.sh b/src/training/tesstrain_utils.sh index c92cffba7c..6960efbe75 100644 --- a/src/training/tesstrain_utils.sh +++ b/src/training/tesstrain_utils.sh @@ -164,6 +164,9 @@ parse_flags() { --my_boxtiff_dir) parse_value "MY_BOXTIFF_DIR" ${ARGV[$j]:-} i=$j ;; + --distort_image) + parse_value "DISTORT_IMAGE" "${ARGV[$j]:-}" + i=$j ;; --output_dir) parse_value "OUTPUT_DIR" ${ARGV[$j]:-} i=$j ;; @@ -264,7 +267,8 @@ generate_font_image() { common_args+=" --leading=${LEADING} --xsize=${X_SIZE}" common_args+=" --char_spacing=${CHAR_SPACING} --exposure=${EXPOSURE}" common_args+=" --outputbase=${outbase} --max_pages=${MAX_PAGES}" - + common_args+=" --distort_image=${DISTORT_IMAGE} " + # add --writing_mode=vertical-upright to common_args if the font is # specified to be rendered vertically. for vfont in "${VERTICAL_FONTS[@]}"; do