Please watch in 720p
Update & upgrade packages:
sudo apt-get update -y && sudo apt-get dist-upgrade -y
Install dependencies:
sudo apt-get install python-dev python3-dev libgphoto2-dev python3-numpy python-numpy libv4l-dev libv4l2rds0 libgtk-3-dev libgstreamer-plugins-base1.0-dev libgst-dev cmake-qt-gui build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev libgstreamer-vaapi1.0-dev libavformat-dev libavformat-ffmpeg-dev -y
Download OpenCV:
https://github.com/Itseez/opencv/arch...
Download OpenCV extra modules:
https://github.com/Itseez/opencv_cont...
Download CLion:
https://www.jetbrains.com/clion/downl...
Launch cmake-gui:
cmake-gui
You might need to disable GST if you encounter gst.h not found errors while compiling.
To disable GST, uncheck WITH_GSTREAMER in cmake-gui.
Compile & install:
make -j4 # 4 is the number of my CPU cores
sudo make install
CMakeLists.txt additions:
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(binary_name ${OpenCV_LIBS}) # replace binary_name
C++ sample codes can be found under "opencv-3.0.0/samples/cpp".
This video was recorded using Kazam & edited using LWKS.