Answers for "save image as grayscale cv2 python"

8

save an image in python as grayscale cv2

cv2.imwrite('data/dst/lena_opencv_red.jpg', im)
Posted by: Guest on January-04-2021
2

python image to grayscale

from PIL import Image
img = Image.open("image.jpg")
img.convert("L").save("result.jpg")
Posted by: Guest on March-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language