Error: Assertion failed (size.width>0 && si>0) in cv::imshow, file C:\build\master_winze.heightpack

Problem solving:
Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file C:\build\master_winpack-build-win64-vc14\opencv\modules\highgui\src\window.
The premise for cpp, line 376 to have this problem is that you have ruled out the cause of the image path problem
:

The opencv dll problem, if you are running debug, then the opencv dll must also be debug. If you are running release, then the opencv dll must also be release.

solve

Insert picture description here
Insert picture description here

So far the perfect solution!

Guess you like

Origin blog.csdn.net/qq_40076022/article/details/112760159