Update 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 = {}
