Image processing software on GPU (Windows, Linux, ARM) for real time machine vision camera applications. Performance benchmarks and Glass-to-Glass time measurem
Image processing software on GPU (Windows, Linux, ARM) for real time machine vision camera applications. Performance benchmarks and Glass-to-Glass time measurem
gpu-camera-sample
Camera sample application with realtime GPU image processing performance (Windows, Linux, Jetson)
That software is based on the following image processing pipeline for camera applications that includes:
Raw image capture (monochrome or bayer 8-bit, 12-bit packed/unpacked, 16-bit)
Processing is done on NVIDIA GPU to speedup the performance. The software could also work with raw bayer images in PGM format and you can utilize these images for testing or if you don't have a camera, or if your camera is not supported. More info about that project you can find here.
From the benchmarks on NVIDIA Quadro RTX 6000 or GeForce RTX 4090 we can see that GPU-based raw image processing is very fast and it could offer high image quality at the same time. The total performance could reach 4 GPix/s for color cameras. The performance strongly depends on complexity of the pipeline. Multiple GPU solutions could significantly improve the performance.
Currently the software is working with XIMEA cameras via XIMEA SDK. FLIR cameras are supported via Spinnaker SDK. We can work with Imperx cameras via Imperx SDK. LUCID Vision Labs cameras are supported via Arena SDK.
Via GenICam the software can work with XIMEA, MATRIX VISION, Basler, FLIR, Imperx, JAI, LUCID Vision Labs, Daheng Imaging cameras.
The software is also working with Leopard Imaging mipi csi cameras on Jetson. You need to have a proper driver to be able to acquire raw frames from mipi camera for further image processing on the GPU with 16/32-bit precision. The software doesn't use NVIDIA ISP via libargus.
Soon we are going to add support for Baumer, Kaya Instruments, IDS Imaging Development Systems cameras. Cameras from Emergent Vision Technologies, IO Industries and Hikrobot are already supported (see the roadmap below). You can add support for desired cameras by yourself. The software is working with demo version of Fastvideo SDK, that is why you can see a watermark on the screen. To get a Fastvideo SDK license for development and for deployment, please contact Fastvideo company.
Performance at a glance
All figures below are on a single NVIDIA GeForce RTX 4090 unless noted. They match the numbers published on Fastvideo's product and benchmark pages (linked in the last column).
The whole pipeline runs in 16/32-bit precision on the NVIDIA GPU. The software does not use the NVIDIA Jetson hardware ISP (libargus), so every stage of the ISP is tunable and quality-critical steps — demosaicing, denoising, and tone mapping — use high-quality algorithms rather than fixed-function approximations.
How to build gpu-camera-sample
Requirements for Windows
Camera SDK or GenICam package + camera vendor GenTL producer (.cti). Сurrently XIMEA, MATRIX VISION, Basler, FLIR, Imperx, JAI, LUCID Vision Labs, Daheng Imaging cameras are supported
Fastvideo SDK (demo) ver.0.22.0.0
NVIDIA CUDA-12.6
Qt ver.5.13.1
Compiler MSVC 2022 or later
Requirements for Linux
Ubuntu 22.04 for x64 platform, Ubuntu 20.04 for Arm64 platform with CUDA 11.4 / CUDA 12.2, Ubuntu 18.04 for Arm64 platform with CUDA 10.2
Camera SDK or GenICam package + camera vendor GenTL producer (.cti). Currently XIMEA, MATRIX VISION, Basler, FLIR, Imperx, JAI, Daheng Imaging cameras are supported
Fastvideo SDK (demo) ver.0.22.0.0
NVIDIA CUDA-12.6 for x64, CUDA-11.4/12.6 (Jetson AGX Xavier, Orin) or CUDA-10.2 (Jetson TX2, NX) for ARM64 platform
Create OtherLibs folder in the project root folder. This folder will contains external libraries, used in gpu-camera-sample application.
Download Fastvideo SDK from Fastvideo SDK (demo) for Windows-10, 64-bit, unpack it into /OtherLibs/FastvideoSDK folder. If the trial period is expired, please send an inquiry to Fastvideo to obtain the latest version.
Copy bin64, include and lib64 folders from c:/Program Files/FLIR System/Spinnaker to /OtherLibs/FLIR
To work with Imperx cameras, download Imperx SDK (IpxCameraSdk) from https://www.imperx.com/downloads/. Unpack and copy archive content to /OtherLibs/Imperx folder.
To work with LUCID Vision Labs cameras, download Arena SDK from https://thinklucid.com/downloads-hub/. Install it and copy "C:\Program Files\Lucid Vision Labs\Arena SDK" folder into /OtherLibs.
Create OtherLibsLinux folder in the project root folder. This folder will contain external libraries, used in gpu-camera-sample application.
Download Fastvideo SDK x64 platform for Windows-10/11, Linux Ubuntu 22.04, or Arm64 for NVIDIA Jetson Nano, TX2, Xavier, Orin and unpack it into /OtherLibsLinux/FastvideoSDK folder. Copy all files from /OtherLibsLinux/FastvideoSDK/fastvideo_sdk/lib to /OtherLibsLinux/FastvideoSDK/fastvideo_sdk/lib/Linux64 for x64 platform and to /OtherLibsLinux/FastvideoSDK/fastvideo_sdk/lib/Arm64 for Arm64 platform.
Create links to Fastvideo SDK *.so files
bash
cd ~/gpu-camera-sample/Scripts
./make_links.sh ~/gpu-camera-sample/OtherLibsLinux/FastvideoSDK/fastvideo_sdk/lib/Linux64
Download Arena SDK for Linux from https://thinklucid.com/downloads-hub/ and unpack it into OtherLibsLinux/Arena SDK/ArenaSDK_Linux_x64/ for x64 platform and OtherLibsLinux/Arena SDK/ArenaSDK_Linux_ARM64 for arm64 platform.
Run
bash
sudo /.Arena_SDK_Linux_x64.conf
for x64 platform and
bash
sudo /.Arena_SDK_ARM64.conf
for arm64 platform
cd to precompiledExamples and run
bash
./IpConfigUtility /list
if everything is OK you will see something like that
bash
Scanning for devices...
index MAC IP SUBNET GATEWAY IP CONFIG
0 1C0FAF5A908A 169.254.139.144 255.255.0.0 0.0.0.0 DHCP= 1 Persistent Ip= 0 LLA = 1
run
bash
./Cpp_Acquisition
to test that camera is working.
If you need built-in MIPI cameras support on Jetson TX2 or Leopard Imaging IMX477 MIPI SCI camera support on Jetson AGX Xavier, read this guide how to setup