diff --git a/ppocr/data/imaug/label_ops.py b/ppocr/data/imaug/label_ops.py index ec5bc969051918ddc7a0cb8444b5ad9190339eff..0a4fad621a9038e71a9d43eb4e12f78e7e92d73d 100644 --- a/ppocr/data/imaug/label_ops.py +++ b/ppocr/data/imaug/label_ops.py @@ -99,6 +99,7 @@ class BaseRecLabelEncode(object): self.max_text_len = max_text_length self.beg_str = "sos" self.end_str = "eos" + self.lower = False if character_dict_path is None: logger = get_logger() diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index c149d9549ed8e8f8000215e7888b7f4aae47f110..ef1a43fd0ee65f3e55a8f72dfd2f96c478da1a9a 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -29,7 +29,6 @@ class BaseRecLabelDecode(object): if character_dict_path is None: self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz" dict_character = list(self.character_str) - self.lower = True else: with open(character_dict_path, "rb") as fin: lines = fin.readlines()