Answers for "pil image to rgb array"

4

pil image to numpy

>>> pix = numpy.array(pic)
Posted by: Guest on June-17-2020
0

convert rgb image to binary in pillow

from PIL import Image

col = Image.open("cat-tied-icon.png")
gray = col.convert('1')
bw.save("result_bw.png")
Posted by: Guest on June-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language