Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is two type of path for calling a file :

  • absolute path

C:\projects\myProject\img.png

non absolute path (relative path)

img.png

Do not forget to put the path between " " .

In the above example, the absolute path contains the full path to the file and not just the file as seen in the non absolute path.

For example , you can put your code source test.cpp and your image in a folder ,name it for example opencv and try the non absolute path .

There is two type of path for calling a file :

  • absolute path

C:\projects\myProject\img.png

  • non absolute path (relative path)

img.png

Do not forget to put the path between " " .

In the above example, the absolute path contains the full path to the file and not just the file as seen in the non absolute path.

For example , you can put your code source test.cpp and your image in a folder ,name it for example opencv and try the non absolute path .

There is two type of path methods for calling a file :

  • absolute path

C:\projects\myProject\img.png

  • non absolute path (relative path)

img.png

Do not forget to put the path between " " .

In the above example, the absolute path contains the full path to the file and not just the file as seen in the non absolute path.

For example , you can put your code source test.cpp and your image in a folder ,name it for example opencv and try the non absolute path .