I take in the below error at Jetson nano Qt
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.1.1) /home/nvidia/host/build_opencv/nv_opencv/modules/highgui/src/window.cpp:352: error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘imshow’
Press to close this window…
This is the code;
#include <opencv2/highgui.hpp>
using namespace std;
int main()
{
cv::Mat img=cv::imread(“home/lena.jpeg”);
cv::imshow(“Window”,img);
cv::waitKey(0);
return 0;
}
Can you solve this problem?