Attribute error

1 import cv2
2 img = cv2.imread(‘images/charmender.jpg’)
----> 3 print(img.shape)

AttributeError: ‘NoneType’ object has no attribute ‘shape’
how can I resolve this issue

Check if the path is correct or not , and if the error still is there make it be images//charmender.jpg instead

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.