cv2.cvtColor black and white code example
Example: color to black and white cv2
import cv2
originalImage = cv2.imread("PATH/TO/IMG")
grayImage = cv2.cvtColor(originalImage, cv2.COLOR_BGR2GRAY)
import cv2
originalImage = cv2.imread("PATH/TO/IMG")
grayImage = cv2.cvtColor(originalImage, cv2.COLOR_BGR2GRAY)