diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index 385cf09a9e52ed62d06e704d6a83ec3a6cdaf1be..69d3f7de9c986dad60b7bfc10867a3baa1b2caf7 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -24,7 +24,7 @@ class BaseRecLabelDecode(object): def __init__(self, character_dict_path=None, use_space_char=False): self.beg_str = "sos" self.end_str = "eos" - + self.reverse = False self.character_str = [] if character_dict_path is None: self.character_str = "0123456789abcdefghijklmnopqrstuvwxyz" @@ -40,8 +40,6 @@ class BaseRecLabelDecode(object): dict_character = list(self.character_str) if 'arabic' in character_dict_path: self.reverse = True - else: - self.reverse = False dict_character = self.add_special_char(dict_character) self.dict = {}