diff --git a/easyocr/utils.py b/easyocr/utils.py index 987baf2c9a6..9d658c5e9ae 100644 --- a/easyocr/utils.py +++ b/easyocr/utils.py @@ -631,7 +631,7 @@ def download_and_unzip(url, filename, model_storage_directory, verbose=True): os.remove(zip_path) def calculate_md5(fname): - hash_md5 = hashlib.md5() + hash_md5 = hashlib.md5(usedforsecurity=False) with open(fname, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk)