Python, Opencv, Jupyter Notebook, Computer Vision, Programming.
another method using BGR2GRAY. To convert a color image into a grayscale image, use the BGR2GRAY attribute of the cv2 module. This is demonstrated in the example below: Import the cv2 module: import cv2 Read the image: img = cv2.imread("pyimg.jpg") Use the cvtColor() method of the cv2 module which