mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
fix typo
This commit is contained in:
parent
a6146ffc43
commit
25008de315
@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
|
||||
def __call__(self, data):
|
||||
text = data['label']
|
||||
text = self.encode(text)
|
||||
char_num = len(self.character_str)
|
||||
char_num = len(self.character)
|
||||
if text is None:
|
||||
return None
|
||||
if len(text) > self.max_text_len:
|
||||
|
Loading…
x
Reference in New Issue
Block a user