Ask Your Question

Revision history [back]

I need help on this as well. But from scouring different sources on the internet they said if you look in Solution Explorer and right click your project under Configuration Properties/Debugging. The working directory is where the image.jpg should be read from.

But I have placed an image in almost every folder in my project file and none of my images have been a hit. The program should be straight forward as with everyone else who wrote the image display, but mine just pops up a gray window with now image. If what I suggested works could you tell me how you set up yours because I am pulling hair just to display an image while using video cams and everything else is a cinch for me.

I need help on this as well. But from scouring different sources on the internet they said if you look in Solution Explorer and right click your project go to properties and under Configuration Properties/Debugging. Properties/Debugging => The working directory is where the image.jpg should be read from. Which is technically your project directory where your program files(code) file is.

But I have placed an image in almost every folder in my project file and none of my images have been a hit. The program should be straight forward as with everyone else who wrote the image display, but mine just pops up a gray window with now image. If what I suggested works could you tell me how you set up yours because I am pulling hair just to display an image while using video cams and everything else is a cinch for me.

I need help on this as well. But from scouring different sources on the internet they said if you look in Solution Explorer and right click your project go to properties and under Configuration Properties/Debugging => The working directory is where the image.jpg should be read from. Which is technically your project directory where your program files(code) file is.

But I have placed an image in almost every folder in my project file and none of my images have been a hit. The program should be straight forward as with everyone else who wrote the image display, but mine just pops up a gray window with now no image. If what I suggested works could you tell me how you set up yours because I am pulling hair just to display an image while using video cams and everything else is a cinch for me.me. Or you could do a specified path in imread() "C:/path"

P.S: From the amount of view we are getting I assume there are many of us who are figuring this out. If possible an expert user that pass by could you please help us out. Even OpenCV's documentation is vague regarding location.