title: how can i solve " NoneType Error" in opencv python
body: <p>I am trying to use OpenCV in python I got this error " 'NoneType' object has no attribute 'shape'" when I run </p>
  
  <pre><code>import cv2
  image = cv2.imread("C:\python\Scripts\bratislava_castle.jpg")
  print(image.shape)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/WeTeh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WeTeh.png" alt="enter image description here"></a></p>
  
  <p>I have added the path from the environment settings but still i have this error shows up </p>