This code I currently have does not work because it cannot find the file name after I use path + i because it will output \PCA lab\imagess1 and not \PCA lab\images\s1 if I try to put it in the path I get a EOL error and if I try
(path + '' + i)
I also get a EOL error.
import os
path = r'C:\Users\joeyh\Desktop\PCA lab\images'
filelist = os.listdir(path)
for i in filelist:
with open(path + i) as f:
print(f)