convert bgr to gray opencv python code example Example: bgr to gray opencv gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)