Ask Your Question

Revision history [back]

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.