Hi,
The data type is uint8. temp_array is a numpy array. I am feeding it the sensor values from a list.
My images are 0 bytes in size and from my reading, just feeding values into a numpy array and writing them out via imgwrite will not do the job since an additional channel for each pixel is missing.
I read posts at the following link.
How to convert a python numpy array to an RGB image with Opencv 2.4? - Stack Overflow
I am scaling the sensor values to between 0 and 255.