Kernel: Python 3 (Ubuntu Linux)
read image pillow/pil and matplotlib into numpy array
Kernel: "Python 3 (Ubuntu Linux)"
In [1]:
In [2]:
galaxypic1.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, comment: "Xat.com uJDO", baseline, precision 8, 350x350, frames 3
In [1]:
In [2]:
(350, 350)
array([[1, 1, 1, ..., 3, 2, 2],
[1, 1, 1, ..., 3, 3, 2],
[1, 1, 1, ..., 3, 3, 3],
...,
[2, 2, 2, ..., 1, 1, 1],
[2, 2, 2, ..., 2, 2, 2],
[2, 2, 2, ..., 2, 2, 2]], dtype=uint8)
In [3]:
(350, 350, 3)
In [4]:
array([[32, 27, 27, 27, 29, 29, 23, 26, 29, 32],
[32, 29, 27, 27, 29, 32, 26, 26, 30, 33],
[31, 29, 29, 29, 31, 31, 27, 30, 33, 33],
[35, 31, 31, 31, 33, 33, 27, 30, 33, 38],
[35, 33, 31, 31, 33, 35, 27, 30, 33, 38],
[35, 33, 31, 33, 33, 35, 30, 30, 35, 38],
[38, 38, 41, 42, 42, 42, 21, 50, 33, 42],
[38, 38, 42, 42, 42, 42, 53, 22, 23, 23],
[38, 38, 42, 42, 42, 42, 51, 23, 90, 77],
[38, 39, 42, 42, 42, 42, 62, 25, 62, 31]], dtype=uint64)
In [0]: