Quick and Easy OpenCV Python Installation with Cuda GPU in Under 10 Minutes

preview_player
Показать описание

You will also get access to all the technical courses inside the program, also the ones I plan to make in the future! Check out the technical courses below 👇

_____________________________________________________________

You will also get access to all the technical courses inside the program, also the ones I plan to make in the future! Check out the technical courses below 👇

If you enjoyed this video, be sure to press the 👍 button so that I know what content you guys like to see.

_____________________________________________________________

_____________________________________________________________

_____________________________________________________________

📞 Connect with Me:

_____________________________________________________________

🎮 My Gear (Affiliate links):
🖥️ Desktop PC:

_____________________________________________________________

Tags:
#OpenCV #opencvGPU #NVIDIA #Cuda #ComputerVision #OpenCVpython #Python
Рекомендации по теме
Комментарии
Автор

Join My AI Career Program
Enroll in My School and Technical Courses

NicolaiAI
Автор

Thank you so much! I've been working on getting cv2 to work with cuda support for days and with your help I finally found the problem: I was using VS 2022 instead of 2019. After uninstalling my mess of VS versions and doing a clean 2019 install, it worked w/o a hitch. Awesome stuff!

ericv
Автор

I am using VS 2022 Professional and this works fine no issues thanks bro !

daffiduck
Автор

Awesome tutorial. One question though, how can i use the cv2 package in other virtual environments? I tried creating a sym link from the virtual env site packages folder to the base anaconda cv2 package but importing fails

gabrielsemonis
Автор

6:20 I didn't understand how to choose the correct bin number. Why did you let 6.1:8.6? Is it the range of your GPU's transistors?

luisdavi
Автор

Python 3.11.10 | packaged by conda-forge | (main, Oct 16 2024, 01:17:14) [MSC v.1941 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'

What do I get this? The configuration and installation went successfully. I'm using VS 2019, CUDA 11.8, compatible CUDnn and numpy, Python 3.11. Could it be the version of Python, as I notice you're using 3.9?

It looks like the cv2 folder in the environment was never created. This --target INSTALL command should have copied the necessary OpenCV files to the installation directory, which I specified.

emptyingthecup
Автор

I did what you said excitely with CUDA11.3, CMAKE2.4.2, OPENCV4.5.2(and contrib) but when i want to try the last thing of import cv2 example i gave that error and i think it couldn't installed correctly.
I tried almost 20 hours it but i couldn't success.
what can i do please help me.

>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'

cagdasgulec
Автор

Thank you Nicolai, Two Days I can't sleep resolving this!

uncleanggi
Автор

Hello there. Im stuck at 6:13. It does not show me Cuda Fast math at this point. Which step did i miss

QuarktaschemitSenf
Автор

I tried many times but there is an error showing up
error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (compiling source file

ankithreddy
Автор

its saying that
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'

badassaman
Автор

Hello, I have been googling and I have not found anything regarding feature extraction (ORB, SIFT, SURF) for CUDA in python, where could I find some information, everything that appears is in C++, could someone help me?

eddygonzalez
Автор

" The library is compiled without CUDA support in function 'throw_no_cuda' "
somebody face this issue?
opencv : 4.6
python : 3.9.13
cuda version : 11.7

daniel_blackWindy
Автор

thanks for the video! I did it. how do I create a python package from this build that can simply be installed on another computer?

seregasame
Автор

Visual Studio 2019 can no longer be downloaded. Does it work with the 2022 version as well?

jojoii
Автор

Nice tutorial mate, I had a lot of issues but following everything step by step IT WORKED. I used regular python (not Anaconda) :)

Anndres
Автор

Sorry but the step at 6:50 was way too fast. Can u explain how i get the correct number with a certain graphics card? E.G. i work with a RTX 3050 mobile. How to set the correct number at arch bin ? Or is this step not important?

QuarktaschemitSenf
Автор

ive literally struggled an week with this and still cannot get it to work
"module 'cv2' has no attribute 'dnn'"

EBINHD
Автор

itd be nice to specify cuda version since 12 seems to not work..?

EBINHD
Автор

am getting DLL load failed while importing cv2: The specified module could not be found.

abdelhaksaouli