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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -