I have a list which I created after appending the images from a folder
samples=[]
for filename in glob.glob(path + '/*.png'):
samples.append(misc.imread(filename))
And a sample of the list looks like
[array([[ 4, 4, 4, ..., 5, 5, 4],
[ 5, 5, 5, ..., 6, 6, 5],
[ 5, 5, 5, ..., 6, 6, 4],
...,
[12, 12, 11, ..., 12, 12, 7],
[12, 11, 11, ..., 13, 12, 7],
[11, 11, 10, ..., 12, 12, 7]], dtype=uint8), array([[ 4, 4, 4, ..., 7, 7, 6],
[ 5, 5, 5, ..., 6, 6, 4],
[ 5, 5, 5, ..., 7, 7, 5]], dtype=uint8)]
How it convert the image's dimensions in a Pandas DataFrame. when I tried to do it with
df=pd.DataFrame(samples)
It gives me an error
ValueError: Must pass 2-d input
Please Suggest- I will appreciate every help