Why my "Resources" file is not recognized in Clion while trying to run OpenCV?

已回答

(If you don't understand OpenCV, the point is that my Reso/test.png file is not recognized by Clion)
I'm trying to run a single program that opens a image file in Clion C++:


As you can see here, i have a file named "Reso" and a image named "test.png", but this code always will promt "Error reading image"
NOTE: This is not a code issue, because i have proven that this does work in Visual Studio perfectly, but for some reason the file is not recognized in Clion

0

Hello!

Does it work if you specify the full path to the image?

0

请先登录再写评论。