text_plain_output_1.png
from skimage.io import imread_collection, imread

import os

path = '../input/pneumoniamulti/pneumonia-multi2/'
image_names = os.listdir(path)
gray_images = [imread(path + str(name) + '') for name in image_names]
print('The database has {} segmented images'.format(len(gray_images)))