Skip to content

Commit

Permalink
Merge pull request JaidedAI#634 from LeeDongGeon1996/patch-1
Browse files Browse the repository at this point in the history
Fix wrong parameter type for `setModelLanguage`
  • Loading branch information
rkcosmos authored Apr 9, 2022
2 parents 5b3a13f + 46bdb47 commit 4a957e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyocr/easyocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __init__(self, lang_list, gpu=True, model_storage_directory=None,
imgH = recog_config['imgH']

available_lang = recog_config['lang_list']
self.setModelLanguage(recog_network, lang_list, available_lang, available_lang)
self.setModelLanguage(recog_network, lang_list, available_lang, str(available_lang))
#char_file = os.path.join(self.user_network_directory, recog_network+ '.txt')
self.character = recog_config['character_list']
model_file = recog_network+ '.pth'
Expand Down

0 comments on commit 4a957e7

Please sign in to comment.