Video Stabilization for Embedded Systems - Getting Started - Building Video Stabilization

From RidgeRun Developer Connection
Jump to: navigation, search


Previous: Getting Started/Getting the code Index Next: User Guide





Dependencies

The image stitching library has the following dependencies:

Meson

The video stabilization library makes use of the Meson build system. To correctly build this library you need to use the latest version of Meson:

First, make sure cmake, python dependencies, and ninja are installed

sudo apt-get install cmake python3 python3-pip python3-setuptools \
                       python3-wheel ninja-build

Then use pip3 install Meson directly from its repository.

sudo -H pip3 install git+https://github.com/mesonbuild/meson.git

FFMPEG

Make sure to have FFMPEG installed in your system

sudo apt install ffmpeg libavformat-dev libavcodec-dev libavutil-dev

OpenGL

sudo apt install libgles2-mesa libgles2-mesa-dev mesa-utils libglu1-mesa-dev libglm-dev

GStreamer

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

OpenCV

To be able to run the file video stabilization example you will also need to install OpenCV

sudo apt install libopencv-dev python3-opencv

Gnuplot

To be able to use the plotter option you will also need to install gnuplot

sudo apt install gnuplot

CppUTest

The following test library will allow you to run the unit tests of the project

sudo apt install libcpputest-dev

Boost

Install the boost dependencies (system, filesystem and iostreams needed).

sudo apt install libboost-all-dev

Building the project

To build the Video Stabilization for Embedded Systems library natively run:

meson build --prefix /usr/
ninja -C build
ninja -C build test
sudo ninja -C build install

For additional customization, you may refer to the following options table:

`
-Denable-eval=true Compile the evaluation version
-Denable-plots=true Compile with movement plots enabled
-Dplot-length=<frames> Set the length of the plots in the number of frames (default: 90)
-Dlog-file-name=<filename> Set the name of the logs generated by the plotter (default: test_plot)
-Dtests=false Disable compilation of tests
-Dexamples=false Disable compilation of examples
--prefix /usr Set the installation path of the library

Table 1. Video stabilization configuration options (Meson)


Previous: Getting Started/Getting the code Index Next: User Guide