Python - How to read a set of images and put it in a matrix? -
i need read set of images in python using , put matrix able preform pca (principle component analysis). images in 1 folder.
using numpy
, pil
:
import numpy np import image dirname = '...' [np.asarray(image.open(os.path.join(dirname, fn))) fn in os.listdir(dirname)]
Comments
Post a Comment