diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index e8a1cd422b05c5015cfe4dffaf653ee40437c4e8..62a1201c6a93506e2f18420241496bcb2d182786 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)