fix lower

pull/4301/head
tink2123 2021-10-15 03:53:17 +00:00
parent d1d02e294d
commit 6eaf11f1d6
2 changed files with 1 additions and 1 deletions
ppocr
data/imaug

View File

@ -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()

View File

@ -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()