OpenCV 使用 createtrackerbar()报错问题
Error
Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file c:uildmaster_winpack-build-win64-vc15opencvmoduleshighguisrcwindow.cpp, line 352
原因
先上图把
这个问题困扰我几个小时,其实是因为多次imshow一张图造成的。
只要保留在实现函数中imshow()即可,回调函数和mian函数均不需要imshow()。