Skip to content

Commit

Permalink
added sleep 1 before generate_font_image to fix the problem of not fi…
Browse files Browse the repository at this point in the history
…nding fonts
  • Loading branch information
FernandoGOT committed Apr 10, 2018
1 parent 81821da commit 7a5033d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/tesstrain_utils.sh
Expand Up @@ -265,6 +265,7 @@ phase_I_generate_image() {

local counter=0
for font in "${FONTS[@]}"; do
sleep 1
generate_font_image "${font}" &
let counter=counter+1
let rem=counter%par_factor
Expand Down Expand Up @@ -566,4 +567,3 @@ make__traineddata() {
tlog "Moving ${TRAINING_DIR}/${LANG_CODE}.traineddata to ${OUTPUT_DIR}"
cp -f ${TRAINING_DIR}/${LANG_CODE}.traineddata ${destfile}
}

0 comments on commit 7a5033d

Please sign in to comment.