CSV to image in python -
i want create image out of csv data.
i reading csv with:
f = open('file.csv', 'rb') reader = csv.reader(f)
from here, want create grayscale image translating each row of numbers in list line of intensities in image file.
not sure useful here details csv file: using floats, columns:315, rows: 144
thanks
two steps:
convert csv file numpy array using genfromtxtfrom @andrew on how read csv record array in numpy?
from numpy import genfromtxt my_data = genfromtxt('my_file.csv', delimiter=',')
then save numpy array image python image csv
No comments:
Post a Comment