From 59671466e3ff83f94b42425413c2b52f199256a9 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Mon, 7 Jun 2021 13:52:52 +0800 Subject: [PATCH] opt output --- ppstructure/predict_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppstructure/predict_system.py b/ppstructure/predict_system.py index e40aa8a8..14f7115b 100644 --- a/ppstructure/predict_system.py +++ b/ppstructure/predict_system.py @@ -78,7 +78,7 @@ def save_res(res, save_folder, img_name): pass else: with open(os.path.join(excel_save_folder, 'res.txt'), 'a', encoding='utf8') as f: - for box, rec_res in zip(*region['res']): + for box, rec_res in zip(region['res'][0],region['res'][1]): f.write('{}\t{}\n'.format(np.array(box).reshape(-1).tolist(), rec_res)) -- GitLab