how to cange images from rgd to gray scale in cv2 code example Example: cv2 grayscale gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)