text_plain_output_5.png application_vnd.jupyter.stderr_output_2.png text_plain_output_9.png application_vnd.jupyter.stderr_output_4.png application_vnd.jupyter.stderr_output_6.png application_vnd.jupyter.stderr_output_8.png text_plain_output_3.png text_plain_output_7.png text_plain_output_1.png
path = '../input/cassava-leaf-disease-classification/train_images/100042118.jpg'
import cv2
import matplotlib.pyplot as plt
img = cv2.imread(path)
im_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
print(img.shape)
plt.imshow(im_gray, cmap='gray')
plt.show()
plt.imshow(im_gray, cmap='jet')
plt.show()