Answers for "how to convert grayscale image to binary image in python"

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
0

convert image to binary python

img=cv2.imread('<image path>')

gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
Posted by: Guest on June-06-2020
0

convert image to binary python

img=cv2.imread('<image path>')gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
Posted by: Guest on June-06-2020

Code answers related to "how to convert grayscale image to binary image in python"

Python Answers by Framework

Browse Popular Code Answers by Language