Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You use invalid path. Try this (not 'r' before path): img =cv2.imread(r"C:\Users\XXXX\map.tif")

Or use \\: img =cv2.imread(r"C:\\Users\\XXXX\\map.tif")

You use invalid path. Try this (not 'r' before path): path):

 img =cv2.imread(r"C:\Users\XXXX\map.tif")
= cv2.imread(r"C:\Users\XXXX\map.tif")

Or use \\: img =cv2.imread(r"C:\\Users\\XXXX\\map.tif") :

img = cv2.imread("C:\\Users\\XXXX\\map.tif")

You use invalid path. Try this (not (note 'r' before path):

img = cv2.imread(r"C:\Users\XXXX\map.tif")

Or use \\:

img = cv2.imread("C:\\Users\\XXXX\\map.tif")