How to install OpenCV with CUDA GPU in windows 10 | Python

  Рет қаралды 17,400

Hackers Realm

Hackers Realm

Күн бұрын

Пікірлер: 53
@Jem_Link
@Jem_Link Ай бұрын
Thank you so much for this. I have been trying to install opencv with cuda for a few days now and there was always some new error that I could not resolve. This is the first tutorial that worked without any issues. Thank you so much!!
@HackersRealm
@HackersRealm Ай бұрын
glad it helps!!!
@kaviprasadjay2473
@kaviprasadjay2473 6 ай бұрын
Error in configuration process, project files may be invalid. I'm getting this error after the process at 10 th minute
@BicTic
@BicTic 20 күн бұрын
same anyone got a fix?
@golden5023
@golden5023 7 ай бұрын
If anyone else is having issues make sure you are using visual studio 2019 for some reason the 2022 version doesnt work :0
@akosbalint3485
@akosbalint3485 3 ай бұрын
I have just run into this issue, vs2019 is working fine.
@user-se6ry6be1t
@user-se6ry6be1t 5 ай бұрын
I built opencv using cmake. but i can not import cv2 in anaconda prompt.
@lukasTHEwise
@lukasTHEwise Жыл бұрын
It doesn't show the specific python paths in CMake for me, just the build. After adding them manually, the CMake installation just stops after 30-40 seconds and it didn't install the library, do these cases have anything in common or what could be the reason?
@LaloHao
@LaloHao 6 ай бұрын
My CMake is also having problems finding python, did you manage to solve it?
@brooksnelson7870
@brooksnelson7870 8 ай бұрын
Great video. One question. If I have a virtual environment already developed, can I build the make file in the environment? Would I have to activate environment then follow your steps?
@HackersRealm
@HackersRealm 8 ай бұрын
I think you can use on any environment once the installation process is done. It's like a global installation similar to microsoft vs build tools
@MozillaMayhem
@MozillaMayhem 8 ай бұрын
CMake Error at modules/dnn/CMakeLists.txt:53 (message): DNN: CUDA backend requires cuDNN. Please resolve dependency or disable OPENCV_DNN_CUDA=OFF what is my fix for this?
@HackersRealm
@HackersRealm 8 ай бұрын
You have to install cuda drivers for your nvidia gpu
@3dmixer552
@3dmixer552 17 күн бұрын
@@HackersRealm I have but still getting this error:(
@sam_razum
@sam_razum 6 ай бұрын
it is saying project files matbe invalid in cmake
@Th3Test5656
@Th3Test5656 5 ай бұрын
same did u figure it out ive tried everything still no luck
@BLOCKBUSTERMOVIES1-br9ys
@BLOCKBUSTERMOVIES1-br9ys 3 ай бұрын
How to fix this error please:CMake Error at modules/dnn/CMakeLists.txt:41 (message): DNN: CUDA backend requires cuDNN. Please resolve dependency or disable OPENCV_DNN_CUDA=OFF
@HackersRealm
@HackersRealm 3 ай бұрын
You need a nvidia graphics card and install the cuda toolkit to avoid this error
@aimusicgenerates
@aimusicgenerates 9 ай бұрын
i can import cv2 but not have any module: __version__ not work, all not work. only i can import it
@HackersRealm
@HackersRealm 9 ай бұрын
that's strange, if you can import without issues, then it should ideally work
@ofeksasson
@ofeksasson Жыл бұрын
cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\core\include\opencv2/core/private.cuda.hpp:106: error: (-216:No CUDA support) The library is compiled without CUDA support in function 'throw_no_cuda' im getting this error after following your video, do you know of a fix?
@HackersRealm
@HackersRealm Жыл бұрын
you might need to install cuda drivers for the nvidia gpu... If that's working then this issue will be resolved
@ofeksasson
@ofeksasson Жыл бұрын
@@HackersRealm I have the latest drivers and both cuda and cudnn are working when I use tensorflow and pytorch. Only when I try to use GPU with opencv I get the problems
@emre_tif
@emre_tif 9 ай бұрын
check your system variable paths if you have still that error because i fix that way @@ofeksasson
@TheAhmedps
@TheAhmedps 6 ай бұрын
same problem have you managed to solve it?
@LaloHao
@LaloHao 6 ай бұрын
How do you enable nvidia video codec headers?
@ruzgar9629
@ruzgar9629 25 күн бұрын
i got error in configuration process, project files may be invalid
@HackersRealm
@HackersRealm 19 күн бұрын
could you please share when you're getting this error? at which step?
@LoukboomYT
@LoukboomYT 11 күн бұрын
@@HackersRealm its when am configure after all option check
@ggbpb3249
@ggbpb3249 Күн бұрын
same thing, have you been able to solve this problem?
@LoukboomYT
@LoukboomYT 13 сағат бұрын
@@ggbpb3249 nope sorry try windows 10
@vebjrnpedersen1091
@vebjrnpedersen1091 7 ай бұрын
i get: Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off Could NOT find BLAS (missing: BLAS_LIBRARIES) Could NOT find LAPACK (missing: LAPACK_LIBRARIES) Reason given by package: LAPACK could not be found because dependency BLAS could not be found. Could NOT find Java (missing: Java_JAVA_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 AWT JVM) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Configuring incomplete, errors occurred! And an error pop up, when trying to "Generate"
@Jforward2god
@Jforward2god 5 ай бұрын
same
@naufalfauzan36
@naufalfauzan36 5 ай бұрын
same
@LoukboomYT
@LoukboomYT 11 күн бұрын
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
@YetiRUS
@YetiRUS 3 ай бұрын
Это не работает. Сборка CMake прошла успешно. Но импорт cv2 невозможен >>> import cv2 Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'cv2'
@HackersRealm
@HackersRealm 3 ай бұрын
kindly check the environment you're trying to use, I have used anaconda environment and installed there for usage.
@YetiRUS
@YetiRUS 3 ай бұрын
@@HackersRealmя не могу найти в CMake параметр BUILD_opencv_python3
@NicelySatisfied
@NicelySatisfied Ай бұрын
@@HackersRealm please explain how do i check the environment
@HackersRealm
@HackersRealm Ай бұрын
@@YetiRUS type "conda env list" in cmd to check the environment. then install the packages on the selected environment. If you don't have anaconda, please install it, as it will ease the process
@angeljo6020
@angeljo6020 7 ай бұрын
is this video complete? where should we place the folder should we add any environment variable?
@HackersRealm
@HackersRealm 7 ай бұрын
yes the video is complete, and once you complete all the steps, you can access the same way like importing opencv module
@angeljo6020
@angeljo6020 7 ай бұрын
@@HackersRealm i tried and gave up , got a prebuilt whl package
@HackersRealm
@HackersRealm 7 ай бұрын
@@angeljo6020If you can share the whl package link, it would be helpful to others as well.
@MintHimself
@MintHimself 3 ай бұрын
@@angeljo6020 yoo could i get that prebuild whl package? sat here for 4 hours tryina figure this shit out
@BicTic
@BicTic 19 күн бұрын
nice didnt work "Error in configuration process, project files may be invalid." i see you responding to all msgs just not these ones so no help at all
@HackersRealm
@HackersRealm 19 күн бұрын
could you please share at which step you're getting this error?
@BicTic
@BicTic 19 күн бұрын
@@HackersRealm in cmake following your guide ive even tried it in cmd cmake -G "Visual Studio 17 2022" ^ -A x64 ^ -D CMAKE_BUILD_TYPE=Release ^ -D CMAKE_INSTALL_PREFIX=D:/OpenCV-GPU/opencv-4.10.0/build ^ -D OPENCV_EXTRA_MODULES_PATH=D:/OpenCV-GPU/opencv_contrib-4.x/modules ^ -D WITH_CUDA=ON ^ -D CUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.2" ^ -D WITH_CUBLAS=ON ^ -D OPENCV_DNN_CUDA=ON ^ -D CMAKE_CXX_STANDARD=11 ^ -D CMAKE_CXX_STANDARD_REQUIRED=ON ^ -D WITH_CUDNN=ON ^ -D BUILD_opencv_world=ON ^ .. I still get an error
@BicTic
@BicTic 19 күн бұрын
@@HackersRealm my comment got deleted or flagged un hide it
@abdulwahabmalik9452
@abdulwahabmalik9452 15 күн бұрын
i was getting the same error, i changed visual studio s version from 2022 to 2017 and it is working now
@BicTic
@BicTic 14 күн бұрын
@@abdulwahabmalik9452 dont you have to pay i cant go back to older vs? thanks anyway
@rajajairamrameshbabu7605
@rajajairamrameshbabu7605 Жыл бұрын
Please make video introduction to nim game hackerrank solution
How to use Ollama to run any LLM in Local Machine | Windows
12:45
Tutorial: CUDA programming in Python with numba and cupy
45:43
nickcorn93
Рет қаралды 77 М.
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 197 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 98 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 91 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 33 МЛН
CUDA Programming on Python
21:34
Ahmad Bazzi
Рет қаралды 1,1 МЛН
OpenCV GPU: Installing OpenCV with GPU for Python using VS Code and CUDA
25:47
The iPhone 16 Will Tear Apple Fans Apart
7:38
CNET
Рет қаралды 68 М.
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 197 МЛН