前两种方法,opencv_gpu主要存在部分算子计算结果不一致,算子耗时较长问题,nvidia_dali主要用于训练中的pipeline图像读取及处理。
CV-CUDA
CV-CUDA has been tested on the following compute stack:
- GPU Compute Capability: 7+.x
- Ubuntu x86_64: 20.04, 22.04
- CUDA Toolkit: 11.7+ (11.2+ for library build and run)
- GCC: 11.0+ (9.0 and 10.0 for APIs, with pre-built binary and run)
- Python: 3.7, 3.8, 3.10
Refer to documentation of the sample applications for dependencies.