From 2741a84de77903fc17362320587cb74a221e27ad Mon Sep 17 00:00:00 2001 From: Topdu <784990967@qq.com> Date: Mon, 22 Aug 2022 09:53:04 +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 e8a1cd42..62a1201c 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 c in self.character[79:]: + if not bool(re.search('[a-zA-Z0-9 ]', c)): if c_current != '': pred_re.append(c_current) pred_re.append(c) -- GitLab