python - AttributeError: 'NoneType' object has no attribute ...
stackoverflow.com › questions › 43299457Apr 09, 2017 · Show activity on this post. This question already has answers here : cv2.imread always returns NoneType (13 answers) Closed 4 years ago. I am trying to resize a .tif image in python. But when im trying to run the code I get the following error: AttributeError: 'NoneType' object has no attribute 'shape'. Below is the code snippet: # Open de beeldfile image = cv2.imread (fullinname) # Bepaal afmetingen en aantal kleurkanalen width = image.shape [1] height = image.shape [0] colors = image.