Step-by-Step Guide: Installing OpenCV C++ and Setting It Up in Visual Studio Code with CMake

preview_player
Показать описание

You will also get access to all the technical courses inside the program, also the ones I plan to make in the future! Check out the technical courses below 👇

_____________________________________________________________

In this video 📝 I'm going to show you How To Install OpenCV C++ and Set It Up in Visual Studio Code with CMake. We will go over the installation of OpenCV and CMake. After that, we will open up Visual Studio Code and install the extensions we are going to use. We will then use CMake to configure our project and build it with OpenCV.

*********************************************
REMEMBER TO DOWNLOAD: visual studio 2019 with c++ devolvement tool
*********************************************

- You can just copy everything from those files and set it up as in the video and you are ready to create your OpenCV programs in Visual Studio Code with c++

If you enjoyed this video, be sure to press the 👍 button so that I know what content you guys like to see.

_____________________________________________________________

_____________________________________________________________

_____________________________________________________________

📞 Connect with Me:

_____________________________________________________________

🎮 My Gear (Affiliate links):
🖥️ Desktop PC:

_____________________________________________________________

Timestamps:
0:00 Intallation
2:15 Setup
8:12 CMAKE Configuration
11:48 Test

Tags:
#OpenCV #VisualStudioCode #OpenCVInstall #OpenCVSetup #OpenCVcpp #computervision
Рекомендации по теме
Комментарии
Автор

For those who have trouble creating the CMake file, if the extension does not prompt you with the "create new cmkae file", just do this Ctrl+Shift+P Cmake:Qick Start

FliBaleon
Автор

Join My AI Career Program
Enroll in My School and Technical Courses

NicolaiAI
Автор

Thanks so much for helping me get past the setup xD

It's honestly insane to me how convoluted it is just to startup a project, but I guess im just a noob lol
Im a somewhat experienced dev, but I usually only work on projects that my coworkers started decades ago. Rarely get to work on my own projects from the ground up.

AvHoCaDo
Автор

Awesome video, keep up the incredible work! :)

ComputerScienceSimplified
Автор

Finally! a tutorial that actually worked for me... Thank you much for this!

andrewjawney
Автор

Hey! Thanks for the help. I have a question though, I just tried to add another cpp file in my folder. It's working so far but I get an error in the include command and I can't just add that file name to my CMake.txt as well. What do I do?

aviraj
Автор

Thenkiu so much. From Vietnam with love

HungBui-guwk
Автор

About the compiler, a useful command is ctrl + shift + p > then cmake: select kit.
For some reason gcc compiler didn't work out, but the one used in this video is working ok.

brandonsamuelcruzsilva
Автор

why do I get an error while using GCC compiler while following this tutorial, should I install and use Visual Studio Community compiler?

luthfiaminulloh
Автор

Late comment, but thank you! This video is still helping people like me! How in the name could I have found things like this out without needing to depend on the chance that a kind soul like you has made a video on it? Genuinely asking

danecchio
Автор

Thanks for the video.
This error appears to me, how do I solve it

Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
[cmake] "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
[cmake] provides a separate development package or SDK, be sure it has been
[cmake] installed.

LuizAntonio_Gameplay
Автор

nice video
honestly compared to visual studio integration it s simpler using cmake

MirakXfire
Автор

CMake was unable to find a build program corresponding to "MinGW Makefiles".

mihirsavla
Автор

I got an error on this line <<<find_package( OpenCV REQUIRED )>>>
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake

Where and how can I fix it?
Thanks!

Anime-beru
Автор

CMakeLists.txt:2 (project):No CMAKE_C_COMPILER could be found . I am getting this error message how do i fix this?

saltygamer
Автор

I am not sure why, but I am unable to find the extensions that you use. I have searched for them; however, none of them show up for me. Does anyone know what I might have done wrong?

ryangippner
Автор

When I do Cmake:Configure, it doesnt show any kits. If I try to scan, none show up. How do I get the vscode to show up?

barbearian
Автор

I followed everything exactly but I have errors on the file that adds the #include <opencv2/opencv.hpp>

#include errors detected based on information provided by the configuration Provider setting. Squiggles are disabled for this translation unit

scottiemurrell
Автор

Hey thanks a lot. but can u please make a video on how to add the tracking modules? Wld be really helpful

vaishnaviseshadri
Автор

same process for mac? or can you please do one for mac... been struggling with the installation and set up for a while.

inipraiseadeniyi