I am trying to run a simple program that reads an image from OpenCV. However, I am getting this error:
error: ......moduleshighguisrcwindow.cpp:281: error: (-215) size.width>0 && size.height>0 in function cv::imshow
Any idea what this error means?
Here is my code:
from matplotlib import pyplot as plt
import numpy as np
import cv2
img = cv2.imread('C:\Utilisateurs\Zeineb\Bureau\image.jpg',0)
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…