I am working with mammogram images. I have 3 folders with each folder consisting of 40 images. I want to read images from each folders so that I can extract features from each o
Use os.walk to recursively traverse a directory, and PIL to handle images.
os.walk
PIL
import os from PIL import Image for path, _, files in os.walk('.') for file in files: foo = Image.open(file) # now do something with the image