import cv2
img = cv2.imread(‘IMAGE_1.PNG’,0) #reads the image
cv2.imwrite(‘output.PNG’,img)
cv2.waitKey(0)
cv2.destroyAllWindows()
more examples
A lifelong passion for innovation and a keen eye for the next big thing, I ensure you stay ahead in tomorrow's tech landscape.
LEARN MORE ABOUT ME