Skip to content

opencv-python-cuda 5.0.0-dev0

Pre-release
Pre-release

Choose a tag to compare

@Breakthrough Breakthrough released this 05 Nov 00:49

Preview build of OpenCV 5.0.0 with CUDA support, including hardware video encode/decode (NVDEC/NVENC).

OpenCV 5 is a major release with breaking API changes. Review the upstream OpenCV change logs before upgrading from 4.x.

Installation

From the package index:

pip install "opencv-python-cuda==5.0.0+ac50fea" --extra-index-url https://breakthrough.github.io/opencv-python-cuda/packages/

Or download the wheel below and install it directly:

pip install opencv_python_cuda-5.0.0+ac50fea-cp37-abi3-win_amd64.whl

Make sure to uninstall any existing OpenCV packages first. This package can be uninstalled via pip uninstall opencv-python-cuda. To stay on OpenCV 4.x when installing from the package index, use "opencv-python-cuda<5".

Build/Version Information

  • Build Run
  • OpenCV 5.0.0 with all features excluding non-free
  • Nvidia CUDA Toolkit v12.9.1
  • Nvidia CuDNN 9.18.1.3
  • Nvidia Video Codec SDK 13.0.37 (hardware video decode/encode)
  • Device compatibility: Maxwell through Blackwell (SASS: 5.0, 5.2, 6.0, 6.1, 7.0, 7.5, 8.0, 8.6, 8.9, 9.0, 10.0; PTX: 10.0)

System Requirements

  • Windows 7 64-bit or newer
  • Python 3.7 or newer
  • Nvidia GPU that is Maxwell-class or newer (GeForce 900-series)
  • Nvidia display driver must be installed: cv2 links against nvcuvid.dll / nvEncodeAPI64.dll, which ship with the driver, so import cv2 fails on machines without it

Changes from 4.13.0-dev1

  • Update OpenCV from 4.13.0 to 5.0.0 (merge all upstream opencv-python 5.x changes and packaging updates)
  • Add patch for opencv_contrib's cudev to build correctly with MSVC on Windows
  • Backported upstream OpenCV fix (opencv/opencv#29343) to disable MLAS GAS assembly on Windows, which otherwise breaks MSVC builds when a MinGW compiler is on PATH