Skip to content

Commit a92900a

Browse files
committed
[docs] Update for 4.13
1 parent 387a160 commit a92900a

5 files changed

Lines changed: 329 additions & 184 deletions

File tree

README.md

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,78 @@
1-
## `opencv-python-cuda`
1+
# opencv-python-cuda
22

3-
Download: [Latest Release (4.12.0-dev1)](https://github.com/Breakthrough/opencv-python-cuda/releases/tag/4.12.0-dev1)
3+
**Pre-built NVIDIA® CUDA™ enabled OpenCV wheels for Python - batteries included.**
44

5-
## What is `opencv-python-cuda`?
5+
[![Latest release](https://img.shields.io/github/v/release/Breakthrough/opencv-python-cuda?include_prereleases&label=release)](https://github.com/Breakthrough/opencv-python-cuda/releases)
6+
[![Platform](https://img.shields.io/badge/platform-Windows%20x64-blue)](https://github.com/Breakthrough/opencv-python-cuda/releases)
7+
[![License](https://img.shields.io/badge/license-MIT-green)](#licensing)
68

7-
Pre-built NVIDIA® CUDA™ enabled OpenCV packages for Python that come with all batteries included. This is a fork of [the official opencv-python project](https://github.com/opencv/opencv-python). Right now packages are only produced for Windows x64, and devices must be Maxwell class (GeForce 900 series) or newer. Once installed via `pip` (or another Python package manager like `uv`), the following should *just work*:
9+
This is a fork of the official [opencv-python](https://github.com/opencv/opencv-python) project that ships fully standalone CUDA-enabled OpenCV builds. No CUDA Toolkit, cuDNN, or other NVIDIA SDK needs to be installed - every required runtime library is bundled in the wheel, including hardware video decoding and encoding (NVDEC/NVENC). Once installed, the following should *just work*:
810

9-
```
11+
```python
1012
import cv2
1113
print(cv2.cuda.getCudaEnabledDeviceCount())
1214
```
1315

14-
### Installation and Usage
16+
See the [project homepage](https://breakthrough.github.io/opencv-python-cuda/) for more documentation.
1517

16-
1. If you have previous/other manually installed (= not installed via ``pip``) version of OpenCV installed (e.g. cv2 module in the root of Python's site-packages), remove it before installation to avoid conflicts.
17-
2. Make sure that your `pip` version is up-to-date (19.3 is the minimum supported version): `pip install --upgrade pip`. Check version with `pip -V`. For example Linux distributions ship usually with very old `pip` versions which cause a lot of unexpected problems especially with the `manylinux` format.
18-
3. Download the latest build `opencv_python_cuda-*-win_amd64.whl` file and install it.
19-
4. Import the `cv2` package as usual.
18+
## Requirements
2019

21-
Frequently Asked Questions
22-
--------------------------
20+
- **Windows x64** (the only platform packages are currently produced for)
21+
- **NVIDIA GPU** - Maxwell class (GeForce GTX 900 series) or newer
22+
- **NVIDIA driver** - the wheel links directly against driver libraries, so an up-to-date driver must be installed for `import cv2` to succeed
23+
- **Python 3.7 or newer** - a single abi3 wheel covers all supported Python versions
2324

24-
Please refer to [the FAQ in the upstream project](https://github.com/opencv/opencv-python/?tab=readme-ov-file#frequently-asked-questions) for the most common questions.
25+
## Installation
2526

26-
**Q: How do I install `opencv-python-cuda`?**
27+
1. Download the latest `opencv_python_cuda-*-win_amd64.whl` from the [Releases page](https://github.com/Breakthrough/opencv-python-cuda/releases).
28+
2. Install it with `pip` (or another package manager like `uv`):
2729

28-
A: Releases can be downloaded from [the Releases page](https://github.com/Breakthrough/opencv-python-cuda/releases). You can download and install the pre-built Python .whl file with `pip install`.
30+
```
31+
pip install opencv_python_cuda-<version>-win_amd64.whl
32+
```
2933

30-
**Q: Can you upload `opencv-python-cuda` to PyPI?**
34+
3. Import the `cv2` package as usual.
3135

32-
A: No, the package is far too large and exceeds [project size limits](https://docs.pypi.org/project-management/storage-limits/).
36+
> [!NOTE]
37+
> If you have a previous manually-installed (not via `pip`) version of OpenCV (e.g. a `cv2` module in the root of Python's site-packages), remove it before installing to avoid conflicts. Also make sure your `pip` is up to date (19.3 is the minimum supported version): `pip install --upgrade pip`.
3338
34-
**Q: What do the wheels include?**
39+
## What's included
3540

36-
All OpenCV modules that can be enabled with CUDA. All required runtime files are included in the wheels. Non-free algorithms are excluded as per the following question.
41+
- All OpenCV modules that can be built with CUDA support
42+
- Hardware-accelerated video decoding and encoding via NVDEC/NVENC (`cv2.cudacodec`)
43+
- FFmpeg for video I/O
44+
- All required CUDA runtime libraries, bundled in the wheel
3745

38-
**Q: Why are non-free algorithms excluded?**
46+
Non-free algorithms (e.g. SURF) are excluded - see the FAQ below.
47+
48+
## Documentation
49+
50+
- [Project homepage](https://breakthrough.github.io/opencv-python-cuda/) - downloads and overview
51+
- [CUDA Compatibility Reference](https://breakthrough.github.io/opencv-python-cuda/cuda-compatibility.html) - GPU architectures, compute capabilities, and CUDA toolkit support
52+
- [Workflow Guide](https://breakthrough.github.io/opencv-python-cuda/workflow.html) - repository setup, triggering builds, and wheel size strategy
53+
54+
## Frequently Asked Questions
3955

40-
A: Non-free algorithms such as SURF are not included in these packages because they are patented / non-free and therefore cannot be distributed as built binaries. Note that SIFT is included in the builds due to patent expiration since OpenCV versions 4.3.0 and 3.4.10. See this issue for more info: https://github.com/skvark/opencv-python/issues/126
56+
For general OpenCV questions, refer to [the FAQ in the upstream project](https://github.com/opencv/opencv-python/?tab=readme-ov-file#frequently-asked-questions).
4157

42-
### Licensing
58+
**Q: Why can't I `pip install opencv-python-cuda` from PyPI?**
4359

44-
Opencv-python-cuda package (scripts in this repository) is available under MIT license.
60+
A: The package is far too large for PyPI and exceeds its [project size limits](https://docs.pypi.org/project-management/storage-limits/). Download wheels from the [Releases page](https://github.com/Breakthrough/opencv-python-cuda/releases) instead.
61+
62+
**Q: Why does `import cv2` fail with "DLL load failed"?**
63+
64+
A: The wheel requires an NVIDIA driver to be installed. On machines without one (or with a very old driver), the bundled CUDA and video codec libraries cannot be loaded.
65+
66+
**Q: Why are non-free algorithms excluded?**
4567

46-
OpenCV itself is available under [Apache 2](https://github.com/opencv/opencv/blob/master/LICENSE) license.
68+
A: Non-free algorithms such as SURF are patented and cannot be distributed as built binaries. Note that SIFT *is* included, due to patent expiration as of OpenCV 4.3.0 / 3.4.10. See [opencv-python#126](https://github.com/skvark/opencv-python/issues/126) for more info.
4769

48-
Third party package licenses are at [LICENSE-3RD-PARTY.txt](https://github.com/opencv/opencv-python/blob/master/LICENSE-3RD-PARTY.txt).
70+
## Licensing
4971

50-
All wheels are distributed with [FFmpeg](http://ffmpeg.org) licensed under the [LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html), and redistributable portions of the NVIDIA® CUDA™ SDK under the [NVIDIA Software License Agreement (EULA)](https://docs.nvidia.com/cuda/eula/index.html).
72+
The opencv-python-cuda package (i.e. the scripts in this repository) is available under the MIT license.
5173

52-
Non-headless Linux wheels ship with [Qt 5](http://doc.qt.io/qt-5/lgpl.html) licensed under the [LGPLv3](http://www.gnu.org/licenses/lgpl-3.0.html).
74+
- OpenCV itself is available under the [Apache 2](https://github.com/opencv/opencv/blob/master/LICENSE) license.
75+
- All wheels are distributed with [FFmpeg](http://ffmpeg.org), licensed under the [LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html), and redistributable portions of the NVIDIA&reg; CUDA&trade; SDK under the [NVIDIA Software License Agreement (EULA)](https://docs.nvidia.com/cuda/eula/index.html).
76+
- The packages include other binaries as well; the full list of licenses can be found in [LICENSE-3RD-PARTY.txt](https://github.com/opencv/opencv-python/blob/master/LICENSE-3RD-PARTY.txt).
5377

54-
The packages include also other binaries. Full list of licenses can be found from [LICENSE-3RD-PARTY.txt](https://github.com/opencv/opencv-python/blob/master/LICENSE-3RD-PARTY.txt).
78+
By downloading and using the software, you agree to fully comply with the terms and conditions of the CUDA EULA.

docs/cuda-compatibility.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>CUDA Compatibility Reference | opencv-python-cuda</title>
77
<link rel="stylesheet" href="style.css">
8-
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;700&display=swap" rel="stylesheet">
118
</head>
129
<body>
1310
<header>

docs/index.html

Lines changed: 55 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,60 +3,80 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>opencv-python-cuda | Download</title>
6+
<title>opencv-python-cuda | CUDA-enabled OpenCV for Python</title>
7+
<meta name="description" content="Pre-built OpenCV wheels for Python with NVIDIA CUDA support. No CUDA Toolkit or cuDNN installation required.">
78
<link rel="stylesheet" href="style.css">
8-
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;700&display=swap" rel="stylesheet">
119
</head>
1210
<body>
13-
<header>
11+
<header class="hero">
1412
<div class="container">
1513
<h1>opencv-python-cuda</h1>
16-
<p>Standalone NVIDIA® CUDA™ enabled OpenCV packages for Python.</p>
14+
<p class="tagline">
15+
Pre-built OpenCV wheels for Python with NVIDIA&reg; CUDA&trade; support -
16+
no CUDA Toolkit or cuDNN installation required.
17+
</p>
18+
<div class="chips">
19+
<span class="chip">Windows x64</span>
20+
<span class="chip">CUDA 12.x</span>
21+
<span class="chip">Maxwell (GTX 900) or newer</span>
22+
</div>
1723
</div>
1824
</header>
1925

2026
<main>
2127
<div class="container">
22-
<section class="download-section">
23-
<h2>Download</h2>
24-
<p class="version">Latest Release: 4.12.0-dev2</p>
25-
<div class="platform-selection">
26-
<div class="platform">
27-
<h3>Windows</h3>
28-
<a href="https://github.com/Breakthrough/opencv-python-cuda/releases/tag/4.12.0-dev2" class="download-button">x86_64</a>
29-
</div>
30-
</div>
31-
<div class="eula">
32-
<p>By downloading and using the software, you agree to fully comply with the terms and conditions of the <a href="https://docs.nvidia.com/cuda/eula/index.html" target="_blank">CUDA EULA</a>.</p>
28+
<section class="card get-started">
29+
<h2>Get started</h2>
30+
<!-- Release version: update the link below when publishing a new release. -->
31+
<div class="download-row">
32+
<a href="https://github.com/Breakthrough/opencv-python-cuda/releases/tag/4.13.0-dev1" class="download-button">Download 4.13.0-dev1</a>
33+
<a href="https://github.com/Breakthrough/opencv-python-cuda/releases" class="all-releases">all releases &rarr;</a>
3334
</div>
35+
<ol class="steps">
36+
<li>Download the <code>.whl</code> file for your platform from the release above.</li>
37+
<li>
38+
Install it with <code>pip</code> (or another package manager like <code>uv</code>):
39+
<pre><code>pip install opencv_python_cuda-*-win_amd64.whl</code></pre>
40+
</li>
41+
<li>
42+
Verify that CUDA is working:
43+
<pre><code>import cv2
44+
print(cv2.cuda.getCudaEnabledDeviceCount())</code></pre>
45+
</li>
46+
</ol>
47+
<p class="eula">
48+
By downloading and using the software, you agree to fully comply with the terms and
49+
conditions of the <a href="https://docs.nvidia.com/cuda/eula/index.html" target="_blank">CUDA EULA</a>.
50+
</p>
3451
</section>
3552

36-
<section class="about-section">
37-
<h2>About opencv-python-cuda</h2>
53+
<section class="content-section">
54+
<h2>About</h2>
3855
<p>
39-
This project provides pre-built NVIDIA® CUDA™ enabled OpenCV packages for Python that come with all batteries included.
40-
It is a fork of the official <a href="https://github.com/opencv/opencv-python">opencv-python</a> project.
41-
Currently, packages are only produced for Windows x64, and devices must be Maxwell class (GeForce 900 series) or newer.
56+
<strong>opencv-python-cuda</strong> is a fork of the official
57+
<a href="https://github.com/opencv/opencv-python">opencv-python</a> project that ships
58+
CUDA-enabled OpenCV builds with all batteries included: every required runtime library is
59+
bundled directly in the wheel, including hardware video decoding and encoding (NVDEC/NVENC).
4260
</p>
4361
<p>
44-
The wheel is fully standalone &mdash; no CUDA Toolkit, cuDNN, or any other NVIDIA software needs to be installed on your system.
45-
All required runtime libraries are bundled directly in the package. Just install the <code>.whl</code> file and you're ready to go.
62+
The only system requirement is an up-to-date NVIDIA driver - the wheel links directly
63+
against driver components, so a working driver must be installed for <code>import cv2</code>
64+
to succeed.
4665
</p>
47-
<p>
48-
Once installed via <code>pip</code> (or another Python package manager like <code>uv</code>), the following should just work:
49-
</p>
50-
<pre><code>import cv2
51-
print(cv2.cuda.getCudaEnabledDeviceCount())</code></pre>
5266
</section>
5367

54-
<section class="about-section">
68+
<section class="content-section">
5569
<h2>Documentation</h2>
56-
<ul class="doc-links">
57-
<li><a href="cuda-compatibility.html">CUDA Compatibility Reference</a> &mdash; GPU architectures, compute capabilities, and CUDA toolkit support</li>
58-
<li><a href="workflow.html">Workflow Guide</a> &mdash; Repository setup, triggering builds, and wheel size strategy</li>
59-
</ul>
70+
<div class="doc-cards">
71+
<a class="doc-card" href="cuda-compatibility.html">
72+
<h3>CUDA Compatibility Reference</h3>
73+
<p>GPU architectures, compute capabilities, and CUDA toolkit support.</p>
74+
</a>
75+
<a class="doc-card" href="workflow.html">
76+
<h3>Workflow Guide</h3>
77+
<p>Repository setup, triggering builds, and wheel size strategy.</p>
78+
</a>
79+
</div>
6080
</section>
6181
</div>
6282
</main>
@@ -68,4 +88,4 @@ <h2>Documentation</h2>
6888
</footer>
6989

7090
</body>
71-
</html>
91+
</html>

0 commit comments

Comments
 (0)