kataria_opticals_api / check_dims.py
codernotme's picture
commit
a5a6a2e verified
raw
history blame contribute delete
317 Bytes
from PIL import Image
import os
folder = "../dataset/test/Heart"
if os.path.exists(folder):
files = os.listdir(folder)[:5]
for f in files:
path = os.path.join(folder, f)
try:
with Image.open(path) as img:
print(f"{f}: {img.size}")
except:
pass