Build and Install OpenCV With CUDA GPU Support on Windows 10 | OpenCV 4.5.1 | 2021

Build and Install OpenCV With CUDA GPU Support on Windows 10 | OpenCV 4.5.1 | 2021

TheCodingBug

3 года назад

60,858 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Maths & Electronics Tutos
Maths & Electronics Tutos - 10.10.2023 20:19

al steps fine , but i dont find the python3 folder inside lib, no pyd file of python3 that it is checked and all paths are done

Ответить
Fazil Sultan
Fazil Sultan - 19.09.2023 17:17

thanks bro. you're awesome!

Ответить
skshandilyamari
skshandilyamari - 06.09.2023 12:47

you just explained the procedure, but not why you are doing what you are doing, would be great if you did

Ответить
RAYTAKES
RAYTAKES - 17.08.2023 22:29

Hi, I need help... Its really emergency

CMake Error at cuda_compile_1_generated_gpu_mat.cu.obj.Release.cmake:220 (message):
Error generating
C:/OpenCV_Build/build/modules/world/CMakeFiles/cuda_compile_1.dir/__/core/src/cuda/Release/cuda_compile_1_generated
_gpu_mat.cu.obj

I'm getting this error when I run this command: "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release

Ответить
Kairun Hanjun
Kairun Hanjun - 17.07.2023 03:32

In my case, all going smoothly but the cmkae cmd stop at this "opencv_test_core SSE4_2.vcxproj -> C:\FILES\OPENCV_BUILD\Build\modules\world\opencv_test_core SSE4_2.dir\Release\ope ncv_test_core_SSE4_2.lib" and no other explanation, just stop at that. In a video the command prompt say "installing" when done but mine different. Anyonw how to solve it? Thank you

Ответить
羅軒
羅軒 - 15.05.2023 11:12

i want see opencv4.6.0 with cuda please i need help

Ответить
DailyCyberTails
DailyCyberTails - 07.05.2023 10:28

I am not getting cv2 in site packages...can you pls tell what's the problem

Ответить
Syed Farooq Ahmed
Syed Farooq Ahmed - 01.05.2023 15:59

Hi, @TheCodingBug, I followed your all steps, but last command didn't generate cv2 library. and and during running, I found a warning message. "error C2065: 'DIFFERENT_SIZES_EXTRA' : undeclared identifier [C:\OpenCV_Build\build\modules\world\opencv_test_cudawarping.vcxproj]". Kindly resolve my issue.

Ответить
Shittheswaran Selvakumar
Shittheswaran Selvakumar - 13.04.2023 23:55

By following this video also i was not able to do "import Cv".. .then i reinstalled Anaconda by choosing the Path to the environment variable and then finally i got " import Cv". currently i am using python 3.10.9..with this version i tried to create a Virtual environment.. but i am facing error here..
the error is like :
(base) C:\Users\FHW>conda create -n opencv_gpu python-3.10
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed.

can you please help me with this ?

Ответить
Shittheswaran Selvakumar
Shittheswaran Selvakumar - 12.04.2023 00:22

Thank you so much for your explanation.. it helps a lot and saves a lot of time.

Ответить
CODETAHA
CODETAHA - 08.04.2023 22:20

PS C:\OpenCV_Build> "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release
At line:1 char:42
+ "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build ...
+ ~~~~~
Unexpected token 'build' in expression or statement.
At line:1 char:1
+ "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The '--' operator works only on variables or on properties.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorReco
rdException
+ FullyQualifiedErrorId : UnexpectedToken
help pls

Ответить
Mason Haskell
Mason Haskell - 30.03.2023 04:32

Thank you so much! Had too fix some errors along the way but it only took about ~2 hours even with the journey I had too take too solve the errors. Thanks for keeping me from days of figuring this out.

Ответить
Shrikant Nathan
Shrikant Nathan - 23.01.2023 20:29

I am trying to configure OpenCV 4.6 in the virtual environment. However, the program is unable to detect numpy even after running the --upgrade command of numpy to the latest version. I even checked whether numpy is installed in the virtual environment, even after numpy being installed, CMake is still not detecting the numpy version in the NUMPY_INCLUDE_DIRS section. After several attempts, I even manually copied the numpy's installed path in the virtual environment to the NUMPY_INCLUDE_DIRS slot to see atleast if that works. It still won't detect numpy's version. It still mentions python3 bindings unavailable. How to solve this?

Your assistance on this would be greatly beneficial.

Ответить
DeadlySoham
DeadlySoham - 25.11.2022 11:07

I am getting this error in cmake :


CMake Error at modules/dnn/CMakeLists.txt:45 (message):

DNN: CUDA backend requires cuDNN. Please resolve dependency or disable
OPENCV_DNN_CUDA=OFF
Call Stack (most recent call first):
modules/world/CMakeLists.txt:13 (include)
modules/world/CMakeLists.txt:32 (include_one_module)





CUDA is installed
CUDNN is installed and added to enviroment variables
nvcc --version is working

Ответить
Rohith Ramesh
Rohith Ramesh - 24.11.2022 05:49

hi, when I tried installing opencv using cmake, I get an error saying "error in configuration process, project files may be invalid". How to fix this please help.

Ответить
Adm Musicc
Adm Musicc - 11.11.2022 20:08

I encounter an error during the import of cv2 after the installation. When I try importing cv2, it gives an error saying "DLL load failed error when importing cv2". If it helps in any way, I had a lot of warnings while building the same in the final stage. I checked for the pyd file's existence in the site packages of the cv2 folder as you pointed it out.

Please do help. Thanks!

Ответить
Jaroslav Pytlíček
Jaroslav Pytlíček - 02.11.2022 18:58

help a lot, thx

Ответить
Z A H I N
Z A H I N - 31.10.2022 14:46

Does this work with python version 3.9?

Ответить
Luís Davi
Luís Davi - 04.10.2022 14:12

I followed this tutorial and it recognizes my gpu and even run simple codes for gpu test. But when i run a code with cv2.dnn.DNN_BACKEND_CUDA and cv2.dnn.DNN_TARGET_CUDA nothing happens. It doesn't show any module missing or any error message, but the video where it should appear the detected objects crashes. The code isn't the problem because i tested it on google colab and works fine. Also it works fine when i let with cpu parameters. Could you tell me what do you think is may causing this problem? Thanks in advance for your attention !!

Ответить