From 903b102f5ff3b2fe101aabb5d9638ce03abfb8bb Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Tue, 17 Nov 2020 17:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=95=B0=E5=8F=96=E5=9D=87=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ppocr/postprocess/rec_postprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index 19129a54..eb9be686 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -81,7 +81,7 @@ class BaseRecLabelDecode(object): else: conf_list.append(1) text = ''.join(char_list) - result_list.append((text, conf_list)) + result_list.append((text, np.mean(conf_list))) return result_list def get_ignored_tokens(self): -- GitLab