DeepStream Libraries
DeepStream Libraries provide CVCUDA, NvImageCodec, and PyNvVideoCodec modules as Python APIs to easily integrate into custom frameworks. Developers can build complete Python applications with fully accelerated components leveraging intuitive Python APIs. Most of the DeepStream Libraries building blocks and their Python APIs are available today as standalone packages. DeepStream Libraries provide a way for Python developers to install these packages with a single installer. All these packages are built against the same CUDA version and validated with the specified driver version. Reference applications are provided to demonstrate the usage of Python APIs.
DeepStream Libraries Repository Setup
Follow these steps to set up your environment for running sample applications:
- Clone Repository
DeepStream Libraries is hosted as a part of the NVIDIA/DeepStream GitHub mono-repo. Clone the mono-repo and change into the deepstream_libraries directory:
- Install System Dependencies
- Download Sample Data
- Setup Python Virtual Environment
Note: Activate the virtual environment for Python dependencies and wheel installation, and in each new terminal session.
- Install Python Dependencies
DeepStream Libraries Installation
- Download the DeepStream Libraries wheel file from the GitHub mono-repo release assets.
- Download the
deepstream_libraries-1.4-cp312-cp312-linux_x86_64.whlwheel file from this release
- Install DeepStream Libraries package.
Getting Started with DeepStream Libraries APIs
We can use DeepStream Libraries API’s to create an application.
Consider the below reference example:
-
Read an image from the given file path using NvImageCodec
-
Resize the image with specified dimensions and Cubic interpolation method using CVCUDA
-
Align output dimensions to ensure compatibility with nvImageCodec
-
Save the resized image using NvImageCodec
Sample Applications
DeepStream Libraries Sample Apps
Additional References and Applications
For more references and application please refer to the below link: