Open cv python installation

I’ve installed the opencv package as mentioned in the pdf but, it is showing me an error :
error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:352: error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘cv::imshow’

Please. help!