I am currently following a tutorial on how to use OpenCV with python but something isn't working. When i run this code that should display an image i get this error: error: C:\builds\master_PackSlaveAddon-win32-vc12-static\opencv\modules\highgui\src\window.cpp:271: error: (-215) size.width>0 && size.height>0 in function cv::imshow
Here is the code
import numpy as np
import cv2
img = cv2.imread('C:\Users\Ive\Downloads\7.jpg',0)
cv2.imshow("image",img)
cv2.waitKey(0)
cv2.destroyAllWindows()
Someone already asked this question on here but the answer didn't work for me. The answer was to remove the unnecessary quotes. But i don't have them.