Update image_utils.py

This commit is contained in:
HibiKier 2021-09-09 17:14:33 +08:00 committed by GitHub
parent 5fabb974ce
commit 3ad955abf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,8 @@ from pathlib import Path
import cv2
import base64
import imagehash
ImageFile.LOAD_TRUNCATED_IMAGES = True
Image.MAX_IMAGE_PIXELS = None
def compare_image_with_hash(