cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:971: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
出现如上报错时一般先检查cv.imread(图片路径)图片的路劲是否正确,尽量不要出现中文名路劲,建议进入copy path复制其路径.