Greetings,

Mat lena = imread("C:\\Users\dasboomer\Desktop\Building-Computer-Vision-Projects-with-OpenCV4-and-CPlusPlus-master\Chapter03/lena.jpg");


I've tried changing:

• backslash to double backslash
• backslash to forward slash backslash
• to double forward slash

edit retag close merge delete

Sort by » oldest newest most voted

change ALL occurences of \to either \\ or / (not only the last)

(it's not even an opencv specific problem, you'll have to do this, whenever you encounter a file path in c++ on win)

more

Thank you for your time. I tried double backslash or forward and double forward slashes to no avail.

( 2020-07-26 12:53:37 -0500 )edit
1

You are correct, it turns out the tutorial code was faulty. My my, where has packt gone?

( 2020-07-26 13:03:55 -0500 )edit