gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
Here is what the above code is Doing:
1. We’re loading an image from disk.
2. We’re converting it to grayscale.
3. We’re displaying it to the screen.
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
Here is what the above code is Doing:
1. We’re loading an image from disk.
2. We’re converting it to grayscale.
3. We’re displaying it to the screen.