From bfa05707dd3d153b82982f1b1750109e50f45bab Mon Sep 17 00:00:00 2001 From: topduke <784990967@qq.com> Date: Mon, 20 Feb 2023 09:39:15 +0800 Subject: [PATCH] fix nrtr posrprocess lower in chinese (#9103) --- 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 347661b7..f64ea1ce 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -799,7 +799,7 @@ class NRTRLabelDecode(BaseRecLabelDecode): else: conf_list.append(1) text = ''.join(char_list) - result_list.append((text.lower(), np.mean(conf_list).tolist())) + result_list.append((text, np.mean(conf_list).tolist())) return result_list -- GitLab