From 1a5e1be1fa678b893da13e12a41dd0c92be9737b Mon Sep 17 00:00:00 2001 From: Topdu <784990967@qq.com> Date: Mon, 22 Aug 2022 09:57:57 +0000 Subject: [PATCH] arabic reverse function --- 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 62a1201c..1ebafc15 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -54,7 +54,7 @@ class BaseRecLabelDecode(object): pred_re = [] c_current = '' for c in pred: - if not bool(re.search('[a-zA-Z0-9 ]', c)): + if not bool(re.search('[a-zA-Z0-9 :*./%+-]', c)): if c_current != '': pred_re.append(c_current) pred_re.append(c) -- GitLab