From df050788a556cf0cae385faeebbf1014a67918b7 Mon Sep 17 00:00:00 2001 From: tink2123 Date: Wed, 8 Jul 2020 17:15:02 +0800 Subject: [PATCH] sync to python35 --- ppocr/utils/character.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppocr/utils/character.py b/ppocr/utils/character.py index 5d852852..9a3db8dd 100755 --- a/ppocr/utils/character.py +++ b/ppocr/utils/character.py @@ -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 -- GitLab