|
|
@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
|
|
|
|
def __call__(self, data):
|
|
|
|
def __call__(self, data):
|
|
|
|
text = data['label']
|
|
|
|
text = data['label']
|
|
|
|
text = self.encode(text)
|
|
|
|
text = self.encode(text)
|
|
|
|
char_num = len(self.character_str)
|
|
|
|
char_num = len(self.character)
|
|
|
|
if text is None:
|
|
|
|
if text is None:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
if len(text) > self.max_text_len:
|
|
|
|
if len(text) > self.max_text_len:
|
|
|
|