opt output

This commit is contained in:
WenmuZhou 2021-06-07 13:52:52 +08:00
parent 864af3db34
commit 59671466e3
1 changed files with 1 additions and 1 deletions

View File

@ -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))