Update functions.py

This commit is contained in:
Sefik Ilkin Serengil 2023-04-29 17:37:54 +01:00 committed by GitHub
parent 16fa3c2969
commit 52ad8e46be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,11 +109,10 @@ def load_image(img):
chunk_arr = np.frombuffer(chunk, dtype=np.uint8)
img = cv2.imdecode(chunk_arr, cv2.IMREAD_COLOR)
return img
# This causes troubles when reading files with non english names
# return cv2.imread(img)
# --------------------------------------------------