SI_InteligentnyWozekWidlowy/imageClasification/usedAssets/imageResize.py
Jakub-Prus ff968efae6 big image database update
saved model importt
2022-05-27 11:23:07 +02:00

11 lines
217 B
Python

from PIL import Image
import os
import PIL
import glob
images = [file for file in os.listdir() if file.endswith(('jpeg', 'png', 'jpg'))]
for image in images:
img = Image.open(image)
img.thumbnail((256,256))