From e03e52a2a45eae8ee9837f5806af790adf97d2d5 Mon Sep 17 00:00:00 2001 From: jaycecd <33342388+jaycecd@users.noreply.github.com> Date: Sun, 1 May 2022 19:55:06 +0800 Subject: [PATCH] bugfix: unable to save Korean to the specified file: system_results.txt (#5855) --- tools/infer/predict_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/infer/predict_system.py b/tools/infer/predict_system.py index 63b635c1..534f08fb 100755 --- a/tools/infer/predict_system.py +++ b/tools/infer/predict_system.py @@ -195,7 +195,7 @@ def main(args): text_sys.text_detector.autolog.report() text_sys.text_recognizer.autolog.report() - with open(os.path.join(draw_img_save_dir, "system_results.txt"), 'w') as f: + with open(os.path.join(draw_img_save_dir, "system_results.txt"), 'w', encoding='utf-8') as f: f.writelines(save_results) -- GitLab