Skip to content

Commit f7ffde9

Browse files
committed
add --distort_image
1 parent ac7ea43 commit f7ffde9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/training/tesstrain_utils.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ parse_flags() {
164164
--my_boxtiff_dir)
165165
parse_value "MY_BOXTIFF_DIR" ${ARGV[$j]:-}
166166
i=$j ;;
167+
--distort_image)
168+
parse_value "DISTORT_IMAGE" "${ARGV[$j]:-}"
169+
i=$j ;;
167170
--output_dir)
168171
parse_value "OUTPUT_DIR" ${ARGV[$j]:-}
169172
i=$j ;;
@@ -264,7 +267,8 @@ generate_font_image() {
264267
common_args+=" --leading=${LEADING} --xsize=${X_SIZE}"
265268
common_args+=" --char_spacing=${CHAR_SPACING} --exposure=${EXPOSURE}"
266269
common_args+=" --outputbase=${outbase} --max_pages=${MAX_PAGES}"
267-
270+
common_args+=" --distort_image=${DISTORT_IMAGE} "
271+
268272
# add --writing_mode=vertical-upright to common_args if the font is
269273
# specified to be rendered vertically.
270274
for vfont in "${VERTICAL_FONTS[@]}"; do

0 commit comments

Comments
 (0)