I tried to do a pattern recognition assignment using this data format in txtfile.
3.700000000000000000e+01
But i only managed to wrote this.
import numpy
import PIL
# Convert Image to array
img = PIL.Image.open("imagefilename.png").convert("L")
arr = numpy.array(img)
and the output i get in array is this.
[[ 85 85 86 ..., 194 196 194]
[ 84 84 85 ..., 194 196 194]
[ 84 85 86 ..., 193 195 195]
...,
[177 177 177 ..., 162 162 162]
[174 174 173 ..., 163 163 163]
[ 1 1 1 ..., 0 0 0]]
so my question is what is this format? 3.700000000000000000e+01 which follow my lecturer's sample in txt file.
and how to convert it from an RGB image?