This error is caused by the imshow function in OpenCV. It occurs when the width and height of the image being displayed are either zero or negative. To fix this error, you need to make sure that the image size is valid and greater than zero. You can check the size of the image using the shape attribute of the numpy array, and make sure it is not empty or negative.

cv2error OpenCV342 CMiniconda3conda-bldopencv-suite_1534379934306workmoduleshighguisrcwindowcpp356 error -215Assertion failed sizewidth0 && sizeheight0 in function cvimshow

原文地址: https://www.cveoy.top/t/topic/b9HD 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录