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