mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-21 13:23:18 +08:00
sync to python35
This commit is contained in:
@@ -98,7 +98,7 @@ class CharacterOps(object):
|
||||
if is_remove_duplicate:
|
||||
if idx > 0 and text_index[idx - 1] == text_index[idx]:
|
||||
continue
|
||||
char_list.append(self.character[text_index[idx]])
|
||||
char_list.append(self.character[int(text_index[idx])])
|
||||
text = ''.join(char_list)
|
||||
return text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user