Error while running the sample display image program
I am getting an error when i run this sample display image program
import numpy as np
import cv2
img = cv2.imread('G:/space.jpg',0)
cv2.imshow('image',img)
cv2.waitKey(0) & 0xFF
cv2.destroyAllWindows()
in my dell inspiron 15r windows 8.1 64 bit system. And the error which i am getting is
Please help! i am novice in opencv.
please add a check like:
if img==None: raise Exception("image was not loaded")
after the imread callAnd in the future, copy the message here, do not screengrab it... the resolution is awfull :D