how to read images from my home directory and resize it
问题 I am trying to read the images and resize the image in my home directory file but didn't work please help how to read images and resize it. import cv2 from PIL import Image img = cv2.resize(cv2.read('C://Users//NanduCn//jupter1//train-scene classification//train"', (28, 28))) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-103-dab0f11a9e2d> in <module>() 1 import cv2 2 from PIL import Image ----> 3 img