Skip to content
Skip to content
All examples

Legacy example · C++ · Python · Version 1.0

Simple CV-CUDA#

AuthorsHoloscan Team (NVIDIA)
Supported platformsx86_64, aarch64
LanguageC++, Python
Version1.0
CompatibilityHSDK 0.6
Contribution levelLevel 1 · Very high-quality code
SourceHoloHub

Legacy HoloHub application

This application comes from HoloHub and was last tested with Holoscan SDK (HSDK) 0.6. It runs with the HoloHub CLI, ./holohub.

This application demonstrates seamless interoperability between Holoscan tensors and CV-CUDA tensors. The image processing pipeline is just a simple flip of the video orientation.

Note that the C++ version of this application currently requires extra code to handle conversion back and forth between CV-CUDA and Holoscan tensor types. On the Python side, the conversion is trivial due to the support for the DLPack Python specification in both CV-CUDA and Holoscan. We provide two operators to handle the interoperability between CVCUDA and Holoscan tensors.

Quick Start with HoloHub CLI Container#

Run the following command to build and run the CV-CUDA sample application in a Docker container:

Bash
./holohub run cvcuda_basic

Advanced Build Steps#

Using the docker file#

This application requires a compiled version of CV-CUDA. For simplicity a DockerFile is available. To generate the container run:

Bash
./holohub build-container cvcuda_basic

The C++ version of the application can then be built by launching this container and using the provided holohub CLI.

Bash
./holohub run-container cvcuda_basic
./holohub build cvcuda_basic

Running the Application#

This application uses the endoscopy dataset as an example. The build command above will automatically download it. This application is then run inside the container.

Bash
./holohub run-container cvcuda_basic

The Python version of the simple CV-CUDA pipeline example can be run via

Bash
python applications/cvcuda_basic/python/cvcuda_basic.py --data=/workspace/holohub/data/endoscopy

or using the HoloHub CLI entrypoint:

Bash
./holohub run cvcuda_basic --language=python --local

The C++ version of the simple CV-CUDA pipeline example can then be run via

Bash
./build/applications/cvcuda_basic/cpp/cvcuda_basic --data=/workspace/holohub/data/endoscopy

or using the run script

Bash
./holohub run cvcuda_basic --language=cpp --local
All examples