diff --git a/tools/infer/predict_system.py b/tools/infer/predict_system.py index 63b635c1114d079478e34682d7c94c433bd21ffa..534f08fbcb3b90eea6a371d9f0ad128e276874c4 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)