CUDA Accelerated GStreamer Camera Undistort - Getting Started - Building the Undistort
CUDA Accelerated GStreamer Camera Undistort |
---|
Undistort Basics |
Getting Started |
User Guide |
Examples |
Performance |
Contact Us |
Dependencies
The cuda undistort library has the following dependencies:
Meson
The image distortion correction library makes use of the Meson build system. To build correctly this library you need to use the latest version of Meson:
First, make sure python dependencies and ninja are installed
sudo apt-get install 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
GstCuda
To install GstCuda see the GstCUDA - Building and Installation Guide.
OpenCV
If you pretend to use the undistort with the Cuda-Stitcher element, follow the instructions for Compiling OpenCV for Image Stitching, since the stitcher requires a specific version of RidgeRun's OpenCV Fork
On the other hand, if you are using the undistort as a standalone element, just install OpenCV with the CUDA module enabled from here.
Building the project
Once you have met the requirements, execute the following commands:
meson build --prefix /usr ninja -C build sudo ninja -C build install