1 | initial version |
There is two type of path for calling a file :
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 .
2 | No.2 Revision |
There is two type of path for calling a file :
C:\projects\myProject\img.png
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 .
3 | No.3 Revision |
There is two type of path methods for calling a file :
C:\projects\myProject\img.png
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 .