I want print All image pixel into array
print(image[:,:,0])
result :
[[ 56 62 91 ..., 75 93 118]
[ 84 71 80 ..., 75 71 88]
[106 74 100 ..., 87 76 80]
...,
[ 72 60 48 ..., 79 78 58]
[ 66 86 94 ..., 91 89 92]
[143 109 82 ..., 28 26 26]]
using PIL
im = Image.open("image.BMP")
pixels = list(im.getdata())
print(pixels)
result :
(120, 120, 120), (116, 116, 116), (95, 95, 95), (113, 113, 113), (102, 102, 102), (95, 95, 95), (80, 80, 80), (87, 87, 87), (85, 85, 85), (61, 61, 61), (64, 64, 64), (104, 104, 104), (119, 119, 119),.........
Question :
How to print all pixel number without cut like this (...,)
[ 66 86 94 ..., 91 89 92]
How to print pixel using PIL without print same number 3 times like this
(104, 104, 104), (119, 119, 119),......
and print more neat.