diff --git a/ppocr/data/imaug/label_ops.py b/ppocr/data/imaug/label_ops.py index 9b99d2ec8096f931345cc098c97478894a1c93fd..af3308a553b40b61fb206a8970038e91b718c56f 100644 --- a/ppocr/data/imaug/label_ops.py +++ b/ppocr/data/imaug/label_ops.py @@ -95,7 +95,7 @@ class BaseRecLabelEncode(object): 'ch', 'en', 'en_sensitive', 'french', 'german', 'japan', 'korean' ] assert character_type in support_character_type, "Only {} are supported now but get {}".format( - support_character_type, self.character_str) + support_character_type, character_type) self.max_text_len = max_text_length if character_type == "en": diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index 6943f84f87913b5e4093c4ced2beebc8de98da73..a18e101bf428930246d04b1553113184cdf2753d 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -27,7 +27,7 @@ class BaseRecLabelDecode(object): 'ch', 'en', 'en_sensitive', 'french', 'german', 'japan', 'korean' ] assert character_type in support_character_type, "Only {} are supported now but get {}".format( - support_character_type, self.character_str) + support_character_type, character_type) if character_type == "en": self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz"