“ndarray to pil image” Ответ

ndarray to pil image

from PIL import Image
image_from_array = Image.fromarray(nd_array)
Dangerous Duck

PIL изображение от Numpy

from PIL import Image

PIL_image = Image.fromarray(numpy_image.astype('uint8'), 'RGB')
Attractive Addax

PIL Image to Numpy

>>> pix = numpy.array(pic)
Bright Buffalo

Ответы похожие на “ndarray to pil image”

Вопросы похожие на “ndarray to pil image”

Больше похожих ответов на “ndarray to pil image” по Python

Смотреть популярные ответы по языку

Смотреть другие языки программирования