Skip to content

Commit

Permalink
Update easyocr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pronoym99 committed Apr 9, 2023
1 parent 5c68ae4 commit d6a8639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions easyocr/easyocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(self, lang_list, gpu=True, model_storage_directory=None,
self.model_storage_directory = MODULE_PATH + '/model'
if model_storage_directory:
self.model_storage_directory = model_storage_directory
self.download_enabled = False # Explicitly disable downloads as soon as model path is specified
Path(self.model_storage_directory).mkdir(parents=True, exist_ok=True)

self.user_network_directory = MODULE_PATH + '/user_network'
Expand Down

0 comments on commit d6a8639

Please sign in to comment.