Код: Выделить всё
import numpy as np
# from scipy.misc import imread, imsave # Not working
from imread import imread, imsave
img = imread('tst-image.jpg')
# print(img)
img_tinted = img * [0, 0, 1]
imsave('tst-image-tinted.jpg', img_tinted)
Код: Выделить всё
RuntimeError: Image must be 8 bits for JPEG saving
Подробнее здесь: https://stackoverflow.com/questions/798 ... -its-color
Мобильная версия