Skip to content

Commit 7a5033d

Browse files
author
FernandoGOT
committed
added sleep 1 before generate_font_image to fix the problem of not finding fonts
1 parent 81821da commit 7a5033d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

training/tesstrain_utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ phase_I_generate_image() {
265265

266266
local counter=0
267267
for font in "${FONTS[@]}"; do
268+
sleep 1
268269
generate_font_image "${font}" &
269270
let counter=counter+1
270271
let rem=counter%par_factor
@@ -566,4 +567,3 @@ make__traineddata() {
566567
tlog "Moving ${TRAINING_DIR}/${LANG_CODE}.traineddata to ${OUTPUT_DIR}"
567568
cp -f ${TRAINING_DIR}/${LANG_CODE}.traineddata ${destfile}
568569
}
569-

0 commit comments

Comments
 (0)