I have read all the images in a folder through OpenCV. Then converting to gray scale, using pyplot I have shown all the images. But instead of grayscale images look like yellowish.
import glob
import cv2
import matplotlib.pyplot as plt
from skimage.color import rgb2gray
images = [cv2.imread(file) for file in glob.glob(r"C:\Users\USER\Handcrafted dataset/*.jpg")]
for img in images:
img = rgb2gray(img)
plt.figure(figsize=(10,10))
plt.imshow(img)
Sample output:
What should I do to convert them to proper grayscale images?
