I have a bmp file of size 30 * 30.
In python, I use
im = Image.open("big.bmp")
rgb_img_data = list(im.getdata())
len = len(rgb_img_data)
get 900
, so I think the real image data should be 900 * 3 = 2700 (r, g, b)
But I read the image data using the read () function.
Get rid of the header and footer, I get 2756 such data elements,
11110101
(I convert it to binary, "11110101" is one data element, I get 2756 data elements like this)
Thanks for your help!
source
share