The tutorial on how to setup OpenCV library on Visual Studio Code over UBUNTU is presented in this video. Which is helpful for beginners.
The tutorial on installing OpenCV library as follows:
1. Install dependencies
sudo apt install build-essential cmake git pkg-config libgtk-3-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
gfortran openexr libatlas-base-dev python3-dev python3-numpy \
libtbb2 libtbb-dev libdc1394-22-dev
2. Clone opencv and contrib repositories
mkdir ~/opencv_build && cd ~/opencv_build
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_cont...
3. Create temporary build directory
cd ~/opencv_build/opencv
mkdir build
cd build
4. Setup opencv
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_GENERATE_PKGCONFIG=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON ..
5. compilation process
make -j{number of processors' cores}
6. make install
7. import opencv package
OPENCV = `pkg-config opencv4 --cflags --libs`
On this page of the site you can watch the video online [Tutorial] Setup openCV library with Visual Studio Code over UBUNTU with a duration of hours minute second in good quality, which was uploaded by the user CV-Channel 01 January 1970, share the link with friends and acquaintances, this video has already been watched 23,875 times on youtube and it was liked by 172 viewers. Enjoy your viewing!