bgr to gray opencv 1

bgr to gray opencv

gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

Here is what the above code is Doing:
1. We load the image into memory using the cv2.imread function.
2. We convert the image to grayscale using the cv2.cvtColor function.

Similar Posts