leovandriel / cvplot

Graph plots, drawing, layout and windows in OpenCV
MIT License
122 stars 26 forks source link

demo crashes when run from build folder #5

Closed jasonbeach closed 2 years ago

jasonbeach commented 6 years ago

make demo works as does running ./bin/demo from the repo root directory. However if I cd to the bin directory and ./demo the program crashes with the error:

OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /home/jason/mysource/opencv/modules/imgproc/src/resize.cpp, line 4044 terminate called after throwing an instance of 'cv::Exception' what(): /home/jason/mysource/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

Two small windows briefly appear but the larger demo one never does. I will see if I can figure anything out, but help would be great. This is a great project by the way.

jasonbeach commented 6 years ago

I assume the problem is this line: auto image = cv::imread("res/demo.jpg");

leovandriel commented 2 years ago

Thank you for reporting! Fixed in #31