The provided samples show how the library is used in simple scenarios. Most of them accept one or more arguments specifying the backend to be used, and the images to be processed. The result is saved back to disk into the same directory.
For convenience, VPI includes sample images that can be used as input. They are located in /opt/nvidia/vpi-0.4/samples/assets and can be referred directly.
Sample applications are installed in /opt/nvidia/vpi-0.4/samples.
To build the sample application these packages must be installed:
For Ubuntu-18.04, install the packages by executing:
The installer sets up the system to allow using VPI immediately. CMake is able to find the vpi package without additional user intervention. All header and library paths are set up correctly.
From within a sample directory, execute:
The sample is built into an executable in the same directory.
Once built, execute each sample using input images, such as those included in the sample assets directory.
The provided sample applications, along with instructions on how to run them, are as follows.