Project for OpenCV tracker
Install basic tools:
sudo apt install -y g++ cmake make wget unzip
Download sources:
git clone https://github.com/opencv/opencv.git
git -C opencv checkout 4.x
Configure and build:
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j7
Install:
sudo make install
Source: OpenCV Docs
For MacOS: OpenCV Install to MacOS
For Windows: OpenCV Install for Windows
Build:
mkdir build
cd build
cmake ..
make
Run:
From file:
./opencv_tracking_cpp -f /home/fedir/projects/opencv-tracking/1.mp4
From cam:
./opencv_tracking_cpp -c 0