Open GoogleCodeExporter opened 9 years ago
Is "Lenna.jpg" in your current directory?
Try this:
>>> import os
>>> os.getcwd()
'C:\\Program Files\\PyScripter'
If it isn't, imread() will return None:
>>> img = cv2.imread('nofilehere')
>>> print img
None
Original comment by uwadba...@gmail.com
on 2 Dec 2012 at 10:20
[deleted comment]
Hmmm... works now. Yesterday I thought it had problems; I recall I could
display the image, but then accessing img[1,1] gave the error.
Works now.
Original comment by and...@flappingbird.com
on 2 Dec 2012 at 1:34
Original issue reported on code.google.com by
and...@flappingbird.com
on 2 Dec 2012 at 12:28