Answers for "how to change the color image to black and white in cv2"

1

color to black and white cv2

import cv2

originalImage = cv2.imread("PATH/TO/IMG")
grayImage = cv2.cvtColor(originalImage, cv2.COLOR_BGR2GRAY)
Posted by: Guest on July-26-2020

Code answers related to "how to change the color image to black and white in cv2"

Python Answers by Framework

Browse Popular Code Answers by Language