this is the error i am getting .
“Could not import PIL.Image. The use of load_img
requires PIL.”
My code :
def preprocess_img(img):
img = image.load_img(img,target_size=(224,224))
img = np.expand_dims(img,axis=0)
#Normalisation
img = preprocess_input(img)
return img
img = preprocess_img(IMG_PATH+“1000268201_693b08cb0e.jpg”)
plt.imshow(img[0])