Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cudawarped committed Oct 25, 2023
1 parent 40911a3 commit 4a4d302
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6e5fcdd0
bdd3228b
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-listing-date-sort="1683838800000" data-listing-file-modified-sort="1698173386078" data-listing-date-modified-sort="1698094800000" data-listing-reading-time-sort="36">
<div class="quarto-post image-right" data-index="1" data-listing-date-sort="1683838800000" data-listing-file-modified-sort="1698246350861" data-listing-date-modified-sort="1698094800000" data-listing-reading-time-sort="37">
<div class="thumbnail">
<p><a href="./qmd/opencv_cuda_python_windows.html"> <p class="card-img-top"><img src="imgs\opencv_cuda_intel.webp" alt="OpenCV with CUDA" class="thumbnail-image card-img"/></p> </a></p>
</div>
Expand Down
8 changes: 4 additions & 4 deletions nbs/opencv_cuda_streams_performance_python.html
Original file line number Diff line number Diff line change
Expand Up @@ -662,19 +662,19 @@ <h2 class="anchored" data-anchor-id="analysis-1">Analysis</h2>
<dl class="code-annotation-container-grid">
<dt data-target-cell="annotated-cell-1" data-target-annotation="1">1</dt>
<dd>
<span data-code-cell="annotated-cell-1" data-code-annotation="1" data-code-lines="1">asynchronous kernel 1</span>
<span data-code-annotation="1" data-code-lines="1" data-code-cell="annotated-cell-1">asynchronous kernel 1</span>
</dd>
<dt data-target-cell="annotated-cell-1" data-target-annotation="2">2</dt>
<dd>
<span data-code-cell="annotated-cell-1" data-code-annotation="2" data-code-lines="3">asynchronous kernel 2</span>
<span data-code-annotation="2" data-code-lines="3" data-code-cell="annotated-cell-1">asynchronous kernel 2</span>
</dd>
<dt data-target-cell="annotated-cell-1" data-target-annotation="3">3</dt>
<dd>
<span data-code-cell="annotated-cell-1" data-code-annotation="3" data-code-lines="5">asynchronous kernel 3</span>
<span data-code-annotation="3" data-code-lines="5" data-code-cell="annotated-cell-1">asynchronous kernel 3</span>
</dd>
<dt data-target-cell="annotated-cell-1" data-target-annotation="4">4</dt>
<dd>
<span data-code-cell="annotated-cell-1" data-code-annotation="4" data-code-lines="7">synchronous copy from device to host</span>
<span data-code-annotation="4" data-code-lines="7" data-code-cell="annotated-cell-1">synchronous copy from device to host</span>
</dd>
</dl>
</div>
Expand Down
30 changes: 15 additions & 15 deletions qmd/opencv_cuda_python_windows.html
Original file line number Diff line number Diff line change
Expand Up @@ -389,39 +389,39 @@ <h2 class="anchored" data-anchor-id="building-opencv-with-cuda-using-visual-stud
<ul class="nav nav-tabs" role="tablist"><li class="nav-item" role="presentation"><a class="nav-link active" id="tabset-1-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-1" role="tab" aria-controls="tabset-1-1" aria-selected="true">All CUDA modules</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-1-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-2" role="tab" aria-controls="tabset-1-2" aria-selected="false">cuDNN only</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-1-3-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-3" role="tab" aria-controls="tabset-1-3" aria-selected="false">Without Python bindings</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-1-4-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-4" role="tab" aria-controls="tabset-1-4" aria-selected="false">Without CUDA</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-1-5-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-5" role="tab" aria-controls="tabset-1-5" aria-selected="false">Ninja</a></li></ul>
<div class="tab-content">
<div id="tabset-1-1" class="tab-pane active" role="tabpanel" aria-labelledby="tabset-1-1-tab">
<div class="sourceCode" id="opencv-cuda-python-windows-cmake-flags"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="opencv-cuda-python-windows-cmake-flags-1"><a href="#opencv-cuda-python-windows-cmake-flags-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=N_THREADS</span>
<span id="opencv-cuda-python-windows-cmake-flags-2"><a href="#opencv-cuda-python-windows-cmake-flags-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"PATH_TO_OPENCV_SOURCE" -DOPENCV_EXTRA_MODULES_PATH="PATH_TO_OPENCV_CONTRIB_MODULES" -B"PATH_TO_BUILD_DIR" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0 -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=PATH_TO_PYTHON_DIST/include -DPYTHON3_LIBRARY=PATH_TO_PYTHON_DIST/libs/python%pyVer%.lib -DPYTHON3_EXECUTABLE=PATH_TO_PYTHON_DIST/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=PATH_TO_PYTHON_DIST/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=PATH_TO_PYTHON_DIST/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode" id="opencv-cuda-python-windows-cmake-flags"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="opencv-cuda-python-windows-cmake-flags-1"><a href="#opencv-cuda-python-windows-cmake-flags-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=&lt;N_THREADS&gt;</span>
<span id="opencv-cuda-python-windows-cmake-flags-2"><a href="#opencv-cuda-python-windows-cmake-flags-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"&lt;PATH_TO_OPENCV_SOURCE&gt;" -DOPENCV_EXTRA_MODULES_PATH="&lt;PATH_TO_OPENCV_CONTRIB_MODULES&gt;" -B"&lt;PATH_TO_BUILD_DIR&gt;" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0 -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=&lt;PATH_TO_PYTHON_DIST&gt;/include -DPYTHON3_LIBRARY=&lt;PATH_TO_PYTHON_DIST&gt;/libs/&lt;PYTHON_Lib&gt; -DPYTHON3_EXECUTABLE=&lt;PATH_TO_PYTHON_DIST&gt;/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=&lt;PATH_TO_PYTHON_DIST&gt;/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=&lt;PATH_TO_PYTHON_DIST&gt;/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div id="tabset-1-2" class="tab-pane" role="tabpanel" aria-labelledby="tabset-1-2-tab">
<p>If you just want to CUDA accelerate the DNN module and are not interested in building the rest of the CUDA modules this will significantly reduce compilation time and size of opencv_worldxxx.dll.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=N_THREADS</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"PATH_TO_OPENCV_SOURCE" -DOPENCV_EXTRA_MODULES_PATH="PATH_TO_OPENCV_CONTRIB_MODULES" -B"PATH_TO_BUILD_DIR" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0 -DBUILD_opencv_cudaarithm=OFF -DBUILD_opencv_cudabgsegm=OFF -DBUILD_opencv_cudafeatures2d=OFF -DBUILD_opencv_cudafilters=OFF -DBUILD_opencv_cudaimgproc=OFF -DBUILD_opencv_cudalegacy=OFF -DBUILD_opencv_cudaobjdetect=OFF -DBUILD_opencv_cudaoptflow=OFF -DBUILD_opencv_cudastereo=OFF -DBUILD_opencv_cudawarping=OFF -DBUILD_opencv_cudacodec=OFF -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=PATH_TO_PYTHON_DIST/include -DPYTHON3_LIBRARY=PATH_TO_PYTHON_DIST/libs/python%pyVer%.lib -DPYTHON3_EXECUTABLE=PATH_TO_PYTHON_DIST/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=PATH_TO_PYTHON_DIST/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=PATH_TO_PYTHON_DIST/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode" id="cb1"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=&lt;N_THREADS&gt;</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"&lt;PATH_TO_OPENCV_SOURCE&gt;" -DOPENCV_EXTRA_MODULES_PATH="&lt;PATH_TO_OPENCV_CONTRIB_MODULES&gt;" -B"&lt;PATH_TO_BUILD_DIR&gt;" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0 -DBUILD_opencv_cudaarithm=OFF -DBUILD_opencv_cudabgsegm=OFF -DBUILD_opencv_cudafeatures2d=OFF -DBUILD_opencv_cudafilters=OFF -DBUILD_opencv_cudaimgproc=OFF -DBUILD_opencv_cudalegacy=OFF -DBUILD_opencv_cudaobjdetect=OFF -DBUILD_opencv_cudaoptflow=OFF -DBUILD_opencv_cudastereo=OFF -DBUILD_opencv_cudawarping=OFF -DBUILD_opencv_cudacodec=OFF -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=&lt;PATH_TO_PYTHON_DIST&gt;/include -DPYTHON3_LIBRARY=&lt;PATH_TO_PYTHON_DIST&gt;/libs/&lt;PYTHON_Lib&gt; -DPYTHON3_EXECUTABLE=&lt;PATH_TO_PYTHON_DIST&gt;/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=&lt;PATH_TO_PYTHON_DIST&gt;/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=&lt;PATH_TO_PYTHON_DIST&gt;/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div id="tabset-1-3" class="tab-pane" role="tabpanel" aria-labelledby="tabset-1-3-tab">
<div class="sourceCode" id="cb2"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=N_THREADS</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"PATH_TO_OPENCV_SOURCE" -DOPENCV_EXTRA_MODULES_PATH="PATH_TO_OPENCV_CONTRIB_MODULES" -B"PATH_TO_BUILD_DIR" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=&lt;N_THREADS&gt;</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"&lt;PATH_TO_OPENCV_SOURCE&gt;" -DOPENCV_EXTRA_MODULES_PATH="&lt;PATH_TO_OPENCV_CONTRIB_MODULES&gt;" -B"&lt;PATH_TO_BUILD_DIR&gt;" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div id="tabset-1-4" class="tab-pane" role="tabpanel" aria-labelledby="tabset-1-4-tab">
<div class="sourceCode" id="cb3"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=N_THREADS</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"PATH_TO_OPENCV_SOURCE" -DOPENCV_EXTRA_MODULES_PATH="PATH_TO_OPENCV_CONTRIB_MODULES" -B"PATH_TO_BUILD_DIR" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=PATH_TO_PYTHON_DIST/include -DPYTHON3_LIBRARY=PATH_TO_PYTHON_DIST/libs/python%pyVer%.lib -DPYTHON3_EXECUTABLE=PATH_TO_PYTHON_DIST/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=PATH_TO_PYTHON_DIST/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=PATH_TO_PYTHON_DIST/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode" id="cb3"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>set CMAKE_BUILD_PARALLEL_LEVEL=&lt;N_THREADS&gt;</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"&lt;PATH_TO_OPENCV_SOURCE&gt;" -DOPENCV_EXTRA_MODULES_PATH="&lt;PATH_TO_OPENCV_CONTRIB_MODULES&gt;" -B"&lt;PATH_TO_BUILD_DIR&gt;" -G"Visual Studio 17 2022" -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=&lt;PATH_TO_PYTHON_DIST&gt;/include -DPYTHON3_LIBRARY=&lt;PATH_TO_PYTHON_DIST&gt;/libs/&lt;PYTHON_Lib&gt; -DPYTHON3_EXECUTABLE=&lt;PATH_TO_PYTHON_DIST&gt;/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=&lt;PATH_TO_PYTHON_DIST&gt;/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=&lt;PATH_TO_PYTHON_DIST&gt;/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div id="tabset-1-5" class="tab-pane" role="tabpanel" aria-labelledby="tabset-1-5-tab">
<p>For details see <a href="#decreasing-the-build-time-with-ninja">decreasing the build time with Ninja</a></p>
<div class="sourceCode" id="cb4"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"</span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"PATH_TO_OPENCV_SOURCE" -DOPENCV_EXTRA_MODULES_PATH="PATH_TO_OPENCV_CONTRIB_MODULES" -B"PATH_TO_BUILD_DIR" -G"Ninja" -DCMAKE_BUILD_TYPE=Release -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0 -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=PATH_TO_PYTHON_DIST/include -DPYTHON3_LIBRARY=PATH_TO_PYTHON_DIST/libs/python%pyVer%.lib -DPYTHON3_EXECUTABLE=PATH_TO_PYTHON_DIST/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=PATH_TO_PYTHON_DIST/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=PATH_TO_PYTHON_DIST/Lib/site-packages/ -DOPENCV_SKIP_PYTHON_LOADER=ON</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" -H"&lt;PATH_TO_OPENCV_SOURCE&gt;" -DOPENCV_EXTRA_MODULES_PATH="&lt;PATH_TO_OPENCV_CONTRIB_MODULES&gt;" -B"&lt;PATH_TO_BUILD_DIR&gt;" -G"Ninja" -DCMAKE_BUILD_TYPE=Release -DINSTALL_TESTS=ON -DINSTALL_C_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DBUILD_opencv_world=ON -DWITH_CUDA=ON -DCUDA_ARCH_BIN=50,52,60,61,70,75,80,86,89,90 -DCUDA_ARCH_PTX=9.0 -DBUILD_opencv_python3=ON -DPYTHON3_INCLUDE_DIR=&lt;PATH_TO_PYTHON_DIST&gt;/include -DPYTHON3_LIBRARY=&lt;PATH_TO_PYTHON_DIST&gt;/libs/&lt;PYTHON_Lib&gt; -DPYTHON3_EXECUTABLE=&lt;PATH_TO_PYTHON_DIST&gt;/python.exe -DPYTHON3_NUMPY_INCLUDE_DIRS=&lt;PATH_TO_PYTHON_DIST&gt;/lib/site-packages/numpy/core/include -DPYTHON3_PACKAGES_PATH=&lt;PATH_TO_PYTHON_DIST&gt;/Lib/site-packages/</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>Following the configuration step the build is started with</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode default code-overflow-wrap code-with-copy"><code class="sourceCode default"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>"C:\Program Files\CMake\bin\cmake.exe" --build PATH_TO_BUILD_DIR --target INSTALL</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
<p>where</p>
<ol type="i">
<li><strong>N_THREADS</strong> should be set to the number of cores/logical processors on your CPU,</li>
<li><strong>PATH_TO_OPENCV_SOURCE</strong> is the root of the OpenCV files you downloaded or cloned (the directory containing 3rdparty, apps, build, etc.),</li>
<li><strong>PATH_TO_OPENCV_CONTRIB_MODULES</strong> is the path to the <strong>modules</strong> directory inside the <a href="https://github.com/opencv/opencv_contrib/tree/master/modules" target="_blank" rel="noopener noreferrer">opencv-contrib</a> repository (the directory containing cudaarithm, cudabgsegm, etc.),</li>
<li><strong>PATH_TO_BUILD_DIR</strong> is the path to the directory where the build files should go,</li>
<li><strong>PATH_TO_PYTHON_DIST</strong> is the directory where mambaforge was installed and,</li>
<li><strong>PYTHON_VERSION</strong> is the concatination of the major and minor version of your python install, e.g.&nbsp;for Python 3.10.10 <strong>PYTHON_VERSION</strong>==310.</li>
<li><strong>&lt;N_THREADS&gt;</strong> should be set to the number of cores/logical processors on your CPU,</li>
<li><strong>&lt;PATH_TO_OPENCV_SOURCE&gt;</strong> is the root of the OpenCV files you downloaded or cloned (the directory containing 3rdparty, apps, build, etc.),</li>
<li><strong>&lt;PATH_TO_OPENCV_CONTRIB_MODULES&gt;</strong> is the path to the <strong>modules</strong> directory inside the <a href="https://github.com/opencv/opencv_contrib/tree/master/modules" target="_blank" rel="noopener noreferrer">opencv-contrib</a> repository (the directory containing cudaarithm, cudabgsegm, etc.),</li>
<li><strong>&lt;PATH_TO_BUILD_DIR&gt;</strong> is the path to the directory where the build files should go,</li>
<li><strong>&lt;PATH_TO_PYTHON_DIST&gt;</strong> is the directory where mambaforge was installed and,</li>
<li><strong>&lt;PYTHON_LIB&gt;</strong> is the concatination of “python” with the major and minor version of your python install and “.lib”, e.g.&nbsp;for Python 3.10.6 <strong>&lt;PYTHON_LIB&gt;</strong>==python310.lib. You can confirm this by looking in your <strong>&lt;PATH_TO_PYTHON_DIST&gt;</strong>/libs directory.</li>
</ol>
<div class="callout callout-style-default callout-warning callout-titled">
<div class="callout-header d-flex align-content-center">
Expand Down
Loading

0 comments on commit 4a4d302

Please sign in to comment.