diff --git a/tools/infer_rec.py b/tools/infer_rec.py index 63d410b627f3868191c9299f9bc99e7fcab69d35..193e24a4de12392130d16b86a3407db74602e1f4 100755 --- a/tools/infer_rec.py +++ b/tools/infer_rec.py @@ -150,7 +150,7 @@ def main(): "label": post_result[key][0][0], "score": float(post_result[key][0][1]), } - info = json.dumps(rec_info) + info = json.dumps(rec_info, ensure_ascii=False) else: if len(post_result[0]) >= 2: info = post_result[0][0] + "\t" + str(post_result[0][1])