bugfix: unable to save Korean to the specified file: system_results.txt (#5855)

This commit is contained in:
jaycecd
2022-05-01 19:55:06 +08:00
committed by GitHub
parent 6c68808a3f
commit e03e52a2a4
+1 -1
View File
@@ -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)