Image is not loading

after giving the correct path for the Image i am unable to load the image . after printing the image i am getting (NONE). As if i run on the other window by giving the same path , the image appears in the new tab but it does load in the jupyter.
ERROR SHOWn as:
1 IMG_PATH=“DATA/Flickr_Data/Flickr_Data/Images”
2 img = cv2.imread(IMG_PATH+“1000268201_693b08cb0e.jpg”)
----> 3 print(img.shape)

AttributeError: ‘NoneType’ object has no attribute ‘shape’

Just change IMG_PATH=“DATA/Flickr_Data/Flickr_Data/Images/” (I just added one slash at end) and than your code will run fine.

Happy Learning :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.