Opencv learning from entry to abandonment

Opencv learning from entry to abandonment (1)

Environment: win10+VS2017+opencv4.0
1. What I downloaded at the beginning was only the X64 version of opencv, and the 64-bit version of opencv. According to the tutorial suggestion, I chose the x86 editor, so I took it for granted to choose x86 to configure, but there was no error in the result. Even include directories are wrong.
Solution: Re-configure the include directory and library directory of the x64 version. If you just choose debug to configure, you only need to add the corresponding additional dependency library with d
.
Wrong, for example, Mat img = imread("E:\logo\blue.jpg");
C\C++C# will use the \ symbol as the escape leading character, and the path is generally replaced by \ or /, and the path is changed to E:/ogo/blue.jpg or E:\logo\blue.jpg is fine. Of course, this error will also occur if the file name does not match.

Guess you like

Origin blog.csdn.net/qq_41750806/article/details/105432003