Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't open image from Python

From IDLE, I do: Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.

import numpy

import cv2 print cv2.__version__ 3.1.0

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

Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> img =cv2.imread("C:\Users\XXXX\map.tif") error: C:\builds\master_PackSlaveAddon-win32-vc12-static\opencv\modules\core\src\matrix.cpp:424: error: (-215) u != 0 in function cv::Mat::create

Any idea what is wrong? I tried a variety of image files. Same result.
Thanks!

Can't open image from Python

From IDLE, I do: do:

Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

information. >>> import numpy >>> >>> import cv2 >>> print cv2.__version__ 3.1.0 >>>
>>> img =cv2.imread("C:\Users\XXXX\map.tif")

import numpy

import cv2 print cv2.__version__ 3.1.0

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

Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> img =cv2.imread("C:\Users\XXXX\map.tif") error: C:\builds\master_PackSlaveAddon-win32-vc12-static\opencv\modules\core\src\matrix.cpp:424: error: (-215) u != 0 in function cv::Mat::create

cv::Mat::create

>>>

Any idea what is wrong? I tried a variety of image files. Same result.
Thanks!