How do I get C++ to detect OpenCV?

I am using Windows 10 and I wish to setup OpenCV with C++ using Visual Studio Code texteditor (not to be mixed up with Visual Studio).

I have downloaded the latest version:

Which is NOT installed on my system but the installed contents I get.

I have linked it in my PATH and everything. It is working fine with opencv-rust but I am not too sure what to do to get it to work with C++ with Visual Studio Code. Any ideas?

Maybe you can follow this guide for VS Code with OpeCV C++.

Since VS Code is a source-code editor, system needs to know which compiler you installed and it needs to be compatible with OpenCV built version.

1 Like