In generate_font_image(), in tesstrain_utils.py; You need to create a unique folder name to pass text2image as the fontconfig_tmpdir parameter. I check the code or text2image. It will rewrite the files in the passed directory, creating a race condition.
Unless text2image is modified to handle a "--keep_tmpdir_if_exists" like flag is added, this will be an issue.
patch.txt
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
In generate_font_image(), in tesstrain_utils.py; You need to create a unique folder name to pass text2image as the fontconfig_tmpdir parameter. I check the code or text2image. It will rewrite the files in the passed directory, creating a race condition.
Unless text2image is modified to handle a "--keep_tmpdir_if_exists" like flag is added, this will be an issue. patch.txt