Skip to content

Commit

Permalink
add --distort_image
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreeshrii committed Mar 22, 2019
1 parent ac7ea43 commit f7ffde9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/training/tesstrain_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f7ffde9

Please sign in to comment.