► *My Other Tutorials:* YOLOv4 On Android Using TFLite th-cam.com/video/YzAjAS6Os8c/w-d-xo.html Custom YOLOv4 Object Detection with TensorFlow and TFLite th-cam.com/video/vzTCJM18uoM/w-d-xo.html Darknet YOLOv4 Custom Object Detection: Part 2 (Training YOLOv4 Darknet) th-cam.com/video/-NEB5P-SLi0/w-d-xo.html Darknet YOLOv4 Custom Object Detection: Part 1 (Preparing Custom Dataset) th-cam.com/video/sKDysNtnhJ4/w-d-xo.html YOLOv4 Object Detection with TensorFlow, TFLite and TensorRT th-cam.com/video/tCmC7nyfJp8/w-d-xo.html Darknet YOLOv4 Object Detection for Windows 10 on Images, Videos, and Webcams th-cam.com/video/FE2GBeKuqpc/w-d-xo.html Real Time Object Detection on Webcam and Videos Using OpenCV With YOLOv3 and YOLOv4 | Windows Linux th-cam.com/video/FjyF03uawsA/w-d-xo.html Build and Install OpenCV 4.4.0 with CUDA (GPU) Support on Windows 10 th-cam.com/video/tjXkW0-4gME/w-d-xo.html Install TensorFlow GPU and PyTorch with CUDA on Windows 10 Anaconda | CUDA 10.1 cuDNN 7.6 th-cam.com/video/PlW9zAg4cx8/w-d-xo.html Real-time Multiple Object Tracking with YOLOv4 TensorFlow and Deep Sort | Linux, Windows th-cam.com/video/GagII5PAeKg/w-d-xo.html
well explained bro.... but i'm getting an error while configure CMake Error at CMakeLists.txt:107 (enable_language): No CMAKE_C_COMPILER could be found. can you help me?
Thank you, but after following the steps you provide i am getting this error: Traceback (most recent call last): File "", line 1, in File "C:\Users\leonr\Anaconda3\lib\site-packages\cv2\__init__.py", line 102, in bootstrap() File "C:\Users\leonr\Anaconda3\lib\site-packages\cv2\__init__.py", line 90, in bootstrap import cv2 ImportError: DLL load failed while importing cv2: The specified module could not be found.
THANK YOU SO MUCH DUDE!!! You really made my day. Now I can use my gpu for testing some scripts with yolo in almost real time. You are the best. Thank you for making a second chance videos for us the non-lucky ones lol. You really deserve your likes
Hey TheCodingBug, nice to meet you! I just found your channel and subscribed, love what you're doing! I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your TH-cam Journey, can't wait to see you succeed! Your content really stands out and you've put so much thought into your videos! Cheers, take care, and keep up the great work!
the installation worked in the base environment perfectly, but when I tried it in the virtual environment when I entered "import cv2" I get the following message: "ImportError: OpenCV loader: missing configuration file: ['config-3.8.py', 'config-3.py']. Check OpenCV installation." -- how do I fix this?
Thank you so much!! It worked. And initially, I used native Python. It threw an error saying "Couldn't find some dll" so I switched to Anaconda and it worked! May be path issues I guess. But it worked. Thanks again!
If anyone has problems at 4:25, where you have numpy 1.19.2 and still the message "Unavailable: java python2 python3" appears, install numpy 1.19.2 through pip ( pip install numpy==1.19.2 ) instad of conda. At least it worked for me. Also, upgrading/just installing numpy will upgrade/install to 1.20.1, which is not compatible I wasted a few hours figuring this out
I did everything like the video that was the last part but I just did what u told me about the command on ur description I got an error in the end it says( fatal error c1083:
Great tutorial! But, I want to fill the gap that you missed on 8:55. Before you upgrade numpy, you should install the numpy first at the environment, after that, you can upgrade it. I missed that part, which confusing me little bit at first, because no numpy at my environment. Anyway, I subs you tho!
I followed the steps as mentioned in the tutorial. But opencv build was not available for python3 (3:40 in the tutorial). I deleted build and configured again and now opencv build is available for python3. Even I did not downgrade numpy as specified in the tutorial. Hope this helps for someone !!!
I had a problem installing opencv due to the location I chose to install opencv from. I chose to leave it at downloads which was a mistake. To avoid similar problem, follow the video and install it from C drive.
The command "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release to install in the virtual environment is applied inside it? For me, it was not very clear when you used it in 9:20 min of the video.
Same command is used for virtual environment or base environment. There is no difference in the command. The only difference is the paths to Python which determine where it'll be installed.
@@TheCodingBug For the virtual environment I'm getting this error: C:\OpenCV_Build\opencv-4.5.1\modules\python\src2\cv2.cpp(33,10): fatal error C1083: Não é possível abrir arquivo inclui r: 'numpy/ndarrayobject.h': No such file or directory [C:\OpenCV_Build\build\modules\python3\opencv_python3.vcxproj] Can you help me?
😎 THAAANK you so much! I just spent two weeks trying to get various configurations for environments to run on Ubuntu without success. Your videos worked without too many issues back on Windows. Though I had to build Darknet based on what "The AI Guy" instructed. Working Specs: Windows 10 GTX 1070 GPU Driver: 456.71 CUDA: 11.0.194 cuDNN: v8.0.5.39 NSight: 2020.3.2 OpenCV + contrib: 4.5.1 cMake: 3.20.1 Anaconda 3: 2020.11 Visual Studio Community 2019 PS: If you want to see GPU/CUDA utilization in the task manager you can change the graphs with their drop-down menus in their top left corners.
I followed the instructions as the video, but python3 kept appearing as unavailable. So I uninstalled anaconda and installed it again, but this time selecting the advanced option "Add Anaconda3 to my PATH environment variable". Then I followed the rest of the video and now it is working perfectly.
i had an error when i tried to configured in cmake. The eroor is "error in configuration process, project file may be invalid" what should ı do? i installed visual studio a while ago. So i dont knowif I had press the c++ part. is it because of that? I looked up and ı installed visual studio 2019 in my D server. İs it a problem? because cmake is in my C: server.
Worked perfectly. Please mention how long it takes to build as it took me more than an hour and I thought of stopping it in between, glad I didn't do it. Thanks
@@TheCodingBug I found the "problem" : you forgot to mention one cmake setting. I was building for ALL supported CUDA architectures instead of the latest (8.6). Changed that and now I compile in less than 30 minutes. Seems like you should mention it.
when i doing install opencv on windows 10 (7:10) i get this error C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\yvals_core.h(545): fata l error C1189: #error: STL1002: Unexpected compiler version, expected CUDA 10.1 Update 2 or newer. [C:\Users\[usersname]\OpenCV\build\modules\world\opencv_world.vcxproj what should i do to fix this error? upgrade my cuda or something else? my GPU is GTX 1650
Please help me, I have write same code in build using CMD like in the video (7:07) "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build"--target INSTALL --config Release Error: C:/OpenCV_Build/build--target is not a directory and get error like this, what shoul i do?
@@TheCodingBug Thankyou sir! done, but. If I import cv2 by code in cmd, cv2 is detected. and if I run by IDLE python, cv2 still not detected. what should I do?
@@jonarad9955 it seems your IDE is using a virtual environment. You have to build for that environment as well or change IDE settings to use base Python environment. Also, make sure there are no multiple Python distributions installed (let's say Anaconda and native Python).
Hi, I get this error although I try to do exactly as you do: CMake Error at modules/dnn/CMakeLists.txt:39 (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)
dude, i did everything, i successfully switched to gpu, but anaconda prompt does not work, only IDE works. thank you so much for everything you are my hero :D
For those who have not found python 3 even after updating numpy I found same error but it was due to my anaconda path was not set in system environment variables when I did that it installed properly and opencv was build properly without any error
@@kristelquezon4624 I did everything as mentioned in the video but build for python was still unavailable so when I completed the whole process i found that in the end the python folder would be missing which would contain the main file
Then after that I tried to recheck what was missing and I found that my anaconda path was not there in system environment variable so when I added that the error disappeared you can just search environment variable in your windows search bar you will find two things i found two things environment variable for lenevo(I have legion 5 pro) and below was system variable try to add your required python path to 'system' variable
You must have had previous installations as from a fresh Win10 installation this tutorial doesnt work. DLLs are missing. For example when installing Anaconda you need to add it to the path for those api dlls.
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!
@@TheCodingBug I see, many thanks. I am watching this video before moving on to your video about installing Darknet for Yolov4, just wondering: do you think the configuration should work for Yolov2 as well? It's getting really hard to find a good tutorial on installing darknet for version 2 these days!
@@sebastianm3505 I had to reinstall Anaconda (and I chose to include the path during the installation, not sure if that was necessary). I had two versions of Anaconda installed somehow. I had upgraded Anaconda and it showed up twice in Windows Apps and Features so I uninstalled both and then reinstalled. Anyways, that worked for me. YMMV.
Is it also possible to perform all the setups for installing opencv with gpu support with both native installation of python and anaconda or we just need to keep Anaconda ?
Everything was executed well. But when I ran the test script file I got more speed when using the CPU. Here is the output. CUDA --- 1.0304639339447021 seconds --- CPU --- 0.9209995269775391 seconds --- My PC Specs are CPU - AMD Ryzen 9 5900x and GPU - 3080 Vision.
Hİ TheCodingBug, First of all thanks for this nice video!! I am getting the following warning in the opencv_world folder when installing OpenCV on Windows 10. Do you have any information about what originated from? Is it important? warning : field of class type without a DLL int erface used in a class with a DLL interface
It would be a good idea to do a video on steps to update opencv and tensorflow gpu versions. Always afraid I mess up something if I simply uninstall the previous version.
That's true. For tensorflow, it's really easy. Just see the supported cuda and cudnn versions against a particular tensorflow version and install them. Use Anaconda for that. For opencv, it becomes headache though.
My problem is when chosing cuda_arch. it dosen;t have any version to selecting. When I select the version fit to mine. it doesn't;t work. Error happened. How to solve?
@TheCodingBug had to use cuda 11.2 due to rtx 3070 showing some warnings with DLL when installing. Eventually got to the point where I import cv2 in gpu environment still says no module named cv2 followed all steps with clean plate and apart from warning in cmake about wrong version of python that asked me to add something to path file there were no other problems. Any idea how to solve it? PS. import cv2 in python does work without gpu ve
Hi, you are my last hope, I am using OpenCV 4.4.0 with numpy 1.20.0, trying to bind tensorflow version 2.4.0 and it gives me an error (NotImplementedError: Cannot convert a symbolic Tensor (random_zoom/zoom_matrix/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported), but it also works fine on numpy version 1.19.2, but from this version CV2 crashes with an error (RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd). Please tell me what could be the problem? python 3.8.5
So what to do after everything works and your example works but there is no intellisense or autocomplete for cv2? I did everything as said and i think its a bit of topic but i think alot of people gonna ask this as i am new in python dev.
@@TheCodingBug Thanks, I am running into another issue, I feel like my installation stops early, because after the installation ends I don't see the python binding file in the build/Release folder and I don't see the cv2 folder in site-packages. I don't know where it went wrong, I have all the prerequisites set as mentioned in the video.
At the time of recording this tutorial, it worked on GTX1050 amd GTX1060. Not sure now after release of new versions of opencv, cuda, and visual studio.
Hi, thanks for the detailed video. I followed the steps exactly as per the video (excluding the virtual environment part as I don't think I need?) but when I try and import cv2 as cv and copy your test script, calling cv.cuda_GpuMat() and other functions such as cv.imshow() and cv.imread(), pyCharm says it cannot find the reference and as such the library doesn't work. Do you know why this might be? Thanks!
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 !!
@@aysebeyzaunal3472 yes you would be able to use yolov3 or yolov4 with GPU support. Follow this tutorial after installing OpenCv with GPU support. th-cam.com/video/FjyF03uawsA/w-d-xo.html
@@TheCodingBugThank youuuu!! Can ı ask something else? ı have a dataset that containts 12 gb photos and ı have to train this. ı search and found that ı can use 2 gpus. But ı dont know how and dont know how to found another gpu? Can you help me
@@TheCodingBug ha ha ha...funny ques and funny reply....But i dont no details about openCV and am very new.Thats why asking...Can I do custom Object in yolo v4? I am following your all vedio...May you please let me know can i do The project without gpu?
Bro I am getting this error " (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function " Can you please help me with this .Please
really good tutorial, exactly what I was looking for. I have few questions, first, is cuDNN necessary? as I just want this for image processing (mainly just template matching), speaking of which, template matching will support Cuda? I really don't know, I am just learning, and there is very little info I get on google. what I am doing is, basically making a dumb bot, which takes a screenshot of every frame of a simple 2d game that I made, and process some auto click actions, obviously, its a game testing bot, which needs to detect around 50 objects per frame, but this template matching is too heavy it takes 1 second for just a single frame (script run just on a single main thread), I have 2 choices, multi-threading or Cuda, I am going for Cuda just because it's cool (lol), I mean I believe this will be simpler than handling multi-threads.
Thank you for your appreciation. It depends how the template matching algorithm is implemented. If you will be able to use OpenCV DNN module, then yes it can use GPU acceleration and you also need cuDNN. If you are using other functions of OpenCV to implement template matching, you might be able to use CUDA supported operations (such as resizing image, conversion to other color spaces etc). But for that, you will have to create GPUMatrix and then "upload" your image to that GPUMatrix, perform all operations on this Matrix and then "download" the image back to normal numpy array. I hope it will give you some idea and direction to move forward.
@@TheCodingBug I build it successfully, on pycharm env it's now not throwing any error I can do imread, imshow and waitKey functions, but in pycharm intellisense not working just for opencv, is there anything I am missing (also in pycharm, opencv is not listed in packages list.
@@TheCodingBug hay there, I might need one more help from you, since in my game background image is keep changing per level, I used the mask in cpu version of template matching, but I found out cuda version of template matching doesn't support mask, can you confirm me that's true? if so, I'll switch to multi-threading solution, I'll try to find meanwhile, if you have multi-threading openvc video, please link me :)
First of all nice tutorial. Was frusturated for 3 days. The only problem was when I tried the test_script.py on my RTX3060 notebook CPU time was lesser than CUDA
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.
i have entered this code to cmd "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release. But i got error. Because Cmake want to create a file in Windows apps folder. But this folder is read-only and i cant change it. I checked everything i did. Can you help me?
when i install opencv in virtual environment it shows error "C:\openCV_build\opencv-4.5.1\modules\python\src2\cv2.cpp(33,10): fatal error C1083: Cannot open include file: 'numpy/nd arrayobject.h': No such file or directory [C:\openCV_build\build\modules\python3\opencv_python3.vcxproj]" what should i do.
Thanks for your help, but i still have a problem with openCV, it works fine, but when i try to execute my OpenCV project with pyinstaller or auto-py-to-exe Opencv is not imported and the executable file won't start. have any idea on how to fix this
I am sorry to hear that! I have tried to address all possible issues. I am not sure what other problem might be. Maybe installing everything with a clean slate would help.
@@TheCodingBug thanks for your reply! I checked and i .py file in both folderd and i still get the error i reformatef my pc and installed it and got the same error :(
@@smraro Make sure you are not using two different environments. Also, you can try creating a virtual environment and install for that particular environment.
hi, i got error named by "ImportError: DLL load failed while importing cv2" when i tried to import cv2 in base enviroment in anaconda prompt. what should i do? thanks in advance.
Make sure you have followed the steps and have not missed anything. Also, I hope you have not deleted "lib" and "install" folder as part of cleanup. CUDA and cuDNN versions should also match as latest versions do not work.
@@TheCodingBug CUDA and cuDNN versions is matching. I didn't delete lib and install folder. I tried this steps 3 times, but everytime i got that error.
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
Dear coding bug, while configuring the, I get a lot of SSL connect errors. Configuration completes but these errors are written while loading. Would this be a problem? I could not manage to do what you said. Could it be not happening because of these SSL connect errors I got?
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
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.
Hi, I was doing all steps in order and I did not receive any errors. However, in the final step, when I want to “import cv2”, I’ve got this error? “DLL load failed while importing cv2: The specified module could not be found” Do you have any idea how can I solve this problem? I had: Windows 10 Enterprise N LTSC GPU 980 GTX
hello great video !! , I have a question I followed every step but when I try to import in anaconda I get this error \anaconda3\lib\site-packages\cv2\__init__.py", line 109, in load_first_config raise ImportError('OpenCV loader: missing configuration file: {}. Check OpenCV installation.'.format(fnames)) ImportError: OpenCV loader: missing configuration file: ['config-3.9.py', 'config-3.py']. Check OpenCV installation.
Hi, I have a question. If I used python 3.9.7 as the interpreter to build the OpenCV, can I use another version of python (e.g., 3.7.13) for the virtual env? I tried but get this error: ImportError: OpenCV loader: missing configuration file: ['config-3.7.py', 'config-3.py']. Check OpenCV installation. Is there any way to build the OpenCV for multiple python versions or do I need to re-build every time for a different version of python?
@@TheCodingBug So, for OpenCV with CUDA in the virtual environment, it can't be a different major Python version (e.g., 3.9 and 3,7) than the Base environment.
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
► *My Other Tutorials:*
YOLOv4 On Android Using TFLite
th-cam.com/video/YzAjAS6Os8c/w-d-xo.html
Custom YOLOv4 Object Detection with TensorFlow and TFLite
th-cam.com/video/vzTCJM18uoM/w-d-xo.html
Darknet YOLOv4 Custom Object Detection: Part 2 (Training YOLOv4 Darknet)
th-cam.com/video/-NEB5P-SLi0/w-d-xo.html
Darknet YOLOv4 Custom Object Detection: Part 1 (Preparing Custom Dataset)
th-cam.com/video/sKDysNtnhJ4/w-d-xo.html
YOLOv4 Object Detection with TensorFlow, TFLite and TensorRT
th-cam.com/video/tCmC7nyfJp8/w-d-xo.html
Darknet YOLOv4 Object Detection for Windows 10 on Images, Videos, and Webcams
th-cam.com/video/FE2GBeKuqpc/w-d-xo.html
Real Time Object Detection on Webcam and Videos Using OpenCV With YOLOv3 and YOLOv4 | Windows Linux
th-cam.com/video/FjyF03uawsA/w-d-xo.html
Build and Install OpenCV 4.4.0 with CUDA (GPU) Support on Windows 10
th-cam.com/video/tjXkW0-4gME/w-d-xo.html
Install TensorFlow GPU and PyTorch with CUDA on Windows 10 Anaconda | CUDA 10.1 cuDNN 7.6
th-cam.com/video/PlW9zAg4cx8/w-d-xo.html
Real-time Multiple Object Tracking with YOLOv4 TensorFlow and Deep Sort | Linux, Windows
th-cam.com/video/GagII5PAeKg/w-d-xo.html
well explained bro.... but i'm getting an error while configure
CMake Error at CMakeLists.txt:107 (enable_language):
No CMAKE_C_COMPILER could be found.
can you help me?
Thank you, but after following the steps you provide i am getting this error: Traceback (most recent call last):
File "", line 1, in
File "C:\Users\leonr\Anaconda3\lib\site-packages\cv2\__init__.py", line 102, in
bootstrap()
File "C:\Users\leonr\Anaconda3\lib\site-packages\cv2\__init__.py", line 90, in bootstrap
import cv2
ImportError: DLL load failed while importing cv2: The specified module could not be found.
THANK YOU SO MUCH DUDE!!! You really made my day. Now I can use my gpu for testing some scripts with yolo in almost real time. You are the best. Thank you for making a second chance videos for us the non-lucky ones lol. You really deserve your likes
Thank you for the appreciation. I am glad it was helpful to you.
This tutorial saves time and (more important) nerves! :) Big thanks for the effort! It took 50 mins on regular 7200rpm HDD
Thank you. Only guide that really works. Every other guide didn’t, holy moly! Thanks! Saved my life
I am glad it worked out for you.
Thank you Thank you Thank you. this is the clearest video so far. You solved my no module error after countless frustrating hours.
I am glad it was helpful.
Thanks man...I follow your tutorial and it works..
Thank you so much for the clean up at the end very very very very helpful and useful!!
Hey TheCodingBug, nice to meet you! I just found your channel and subscribed, love what you're doing!
I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your TH-cam Journey, can't wait to see you succeed! Your content really stands out and you've put so much thought into your videos!
Cheers, take care, and keep up the great work!
Thank you for the appreciation. It's great to see people making a difference and spreading data literacy.
@@TheCodingBug No problem, thank you for the kind words as well!
This Tutorial Helps me a lot! Thank you so much!😊
I am glad it was useful.
Yes, this tutorial worked. Thanks a lot.
the installation worked in the base environment perfectly, but when I tried it in the virtual environment when I entered "import cv2" I get the following message: "ImportError: OpenCV loader: missing configuration file: ['config-3.8.py', 'config-3.py']. Check OpenCV installation." -- how do I fix this?
Thank you so much!! It worked. And initially, I used native Python. It threw an error saying "Couldn't find some dll" so I switched to Anaconda and it worked! May be path issues I guess. But it worked. Thanks again!
If anyone has problems at 4:25, where you have numpy 1.19.2 and still the message "Unavailable: java python2 python3" appears, install numpy 1.19.2 through pip ( pip install numpy==1.19.2 ) instad of conda. At least it worked for me. Also, upgrading/just installing numpy will upgrade/install to 1.20.1, which is not compatible
I wasted a few hours figuring this out
I did that. Still have same problem. What the problem should be?
You solved that problem
Thanks!! Finally I having be able to run it.
Good to hear.
Thank you so much for your explanation.. it helps a lot and saves a lot of time.
That was very helpful, thank you so much!
Thanks dude ! :) This is really nerves saving.
I am glad it was helpful.
@@TheCodingBug please reply to my issue as well
Still showing unavailable for python3 in CMake. Please help me to solve it.
hey whats up buddy i dint understand were 9:17 can u please help me what did u type on ur command prompt cmd that u install ?
The command is in the description.
Thank u alot for ur fast reply and great videos keep them coming
I did everything like the video that was the last part but I just did what u told me about the command on ur description I got an error in the end it says( fatal error c1083:
@@manuelmagana8225 one of your paths are wrong. Your path to files and folders would be different than mine.
Should I just redo all the video again
Awesome, brief and applied.
thanks for explaining this so clearly, it's really helpfull 🤗
Nice tutorial. It is worked and I resolved my problem to implement opencv with gpu.
I am glad it was helpful.
Great tutorial!
But, I want to fill the gap that you missed on 8:55.
Before you upgrade numpy, you should install the numpy first at the environment, after that, you can upgrade it.
I missed that part, which confusing me little bit at first, because no numpy at my environment.
Anyway, I subs you tho!
Thank you for this information.
Hi
7:29 I have python3 and Release
but it folder is empty what should i do now
thanks bro. you're awesome!
I followed the steps as mentioned in the tutorial. But opencv build was not available for python3 (3:40 in the tutorial). I deleted build and configured again and now opencv build is available for python3. Even I did not downgrade numpy as specified in the tutorial. Hope this helps for someone !!!
i did it but still doesn't available for python3 however i've tried every way
Thank you very much bro
I had a problem installing opencv due to the location I chose to install opencv from. I chose to leave it at downloads which was a mistake. To avoid similar problem, follow the video and install it from C drive.
I don't understand why it is so complicated...
I am getting MSBuild error project file not found. please guide
You forgot to click "Generate" inside of Cmake after the configurations were set.
Thanks for the great tutorial. Is there any performance change between with and without GPU?
Yes.
th-cam.com/video/FjyF03uawsA/w-d-xo.html
th-cam.com/video/GXcy7Di1oys/w-d-xo.html
The command "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release to install in the virtual environment is applied inside it? For me, it was not very clear when you used it in 9:20 min of the video.
Same command is used for virtual environment or base environment. There is no difference in the command.
The only difference is the paths to Python which determine where it'll be installed.
@@TheCodingBug thank you!
@@TheCodingBug For the virtual environment I'm getting this error:
C:\OpenCV_Build\opencv-4.5.1\modules\python\src2\cv2.cpp(33,10): fatal error C1083: Não é possível abrir arquivo inclui
r: 'numpy/ndarrayobject.h': No such file or directory [C:\OpenCV_Build\build\modules\python3\opencv_python3.vcxproj]
Can you help me?
😎 THAAANK you so much! I just spent two weeks trying to get various configurations for environments to run on Ubuntu without success. Your videos worked without too many issues back on Windows. Though I had to build Darknet based on what "The AI Guy" instructed.
Working Specs:
Windows 10
GTX 1070
GPU Driver: 456.71
CUDA: 11.0.194
cuDNN: v8.0.5.39
NSight: 2020.3.2
OpenCV + contrib: 4.5.1
cMake: 3.20.1
Anaconda 3: 2020.11
Visual Studio Community 2019
PS: If you want to see GPU/CUDA utilization in the task manager you can change the graphs with their drop-down menus in their top left corners.
I am glad it was helpful. And kudos to "The AI Guy".
Thank you!
Saved us
I followed the instructions as the video, but python3 kept appearing as unavailable. So I uninstalled anaconda and installed it again, but this time selecting the advanced option "Add Anaconda3 to my PATH environment variable". Then I followed the rest of the video and now it is working perfectly.
I hope this will be helpful for someone else.
After clean installation...
I am facing this error:
ImportError: DLL load failed while importing cv2: The specified module could not be found.
i had an error when i tried to configured in cmake. The eroor is "error in configuration process, project file may be invalid" what should ı do?
i installed visual studio a while ago. So i dont knowif I had press the c++ part. is it because of that? I looked up and ı installed visual studio 2019 in my D server. İs it a problem? because cmake is in my C: server.
Hi, my CMake is using the normal python on my system and not the Anaconda's python.exe. Is there a way to configure cmake to use anaconda python?
Yes. Change all the paths to Anaconda ones. See the part where I changed paths for virtual environment.
@@TheCodingBug oh thanks!! after changing the paths, do I configure again or just generate?
@@mallvin2000 Configure again.
@@TheCodingBug Thanks!! Last question sir sorry, do I clear the cache then configure or just click configure again?
@@mallvin2000 clear the cache first.
is it ok to replace the files in the cuda toolkit with the cuda dnn files in 1:57 ? Because maybe it is the cause that my training is failing
Worked perfectly. Please mention how long it takes to build as it took me more than an hour and I thought of stopping it in between, glad I didn't do it. Thanks
It takes 45 minutes on my SSD and 1.8 hours on HDD.
@@TheCodingBug it takes nearly 4 hours on a Core i7-6850K with NVMe SSD and 64 GB of RAM. What are you guys running ? 64-core EPYC's ???
@@TheNefastor 4 250GB SSDs in RAID0 configuration.
@@TheCodingBug What's your processor ?
@@TheCodingBug I found the "problem" : you forgot to mention one cmake setting. I was building for ALL supported CUDA architectures instead of the latest (8.6). Changed that and now I compile in less than 30 minutes. Seems like you should mention it.
when i doing install opencv on windows 10 (7:10) i get this error
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\yvals_core.h(545): fata
l error C1189: #error: STL1002: Unexpected compiler version, expected CUDA 10.1 Update 2 or newer. [C:\Users\[usersname]\OpenCV\build\modules\world\opencv_world.vcxproj
what should i do to fix this error? upgrade my cuda or something else? my GPU is GTX 1650
You need the specified version of CUDA.
@@TheCodingBug Thank you, it's work for me
@@raffelravionaldo463 may i know which version cuda and cunn for u cuz im also used gtx 1650
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
Please help me, I have write same code in build using CMD like in the video (7:07)
"C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build"--target INSTALL --config Release
Error: C:/OpenCV_Build/build--target is not a directory
and get error like this, what shoul i do?
Try copying command from the description and paste it.
@@TheCodingBug Thankyou sir! done, but. If I import cv2 by code in cmd, cv2 is detected. and if I run by IDLE python, cv2 still not detected. what should I do?
@@jonarad9955 it seems your IDE is using a virtual environment. You have to build for that environment as well or change IDE settings to use base Python environment.
Also, make sure there are no multiple Python distributions installed (let's say Anaconda and native Python).
Thank you very much this works! Is there a way to use this with virtual environment without anaconda?
Yes. Any Python path in Cmake can be used. It doesn't matter if it's for Anaconda or any other Python distribution.
@@TheCodingBug edited, nvm it worked. Haha thank you very much!
Hi, I get this error although I try to do exactly as you do:
CMake Error at modules/dnn/CMakeLists.txt:39 (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)
The cuDNN and CUDA versions do not match.
good stuff! subscribed
do you have a plan to do a session on how to build opencv with cuda on linux (say ubuntu)? im sure many are interested.
I'll make that in the first half of February.
@@TheCodingBug great looking forward to your video!
dude, i did everything, i successfully switched to gpu, but anaconda prompt does not work, only IDE works. thank you so much for everything you are my hero :D
instead of anaconda3 it shows this path C:/Users/Jatin/AppData/Local/Programs/Python/Python37-32/Lib/site-packages
how to handle?pls help
Looks like you have multiple versions of Python. You can change all the paths to Anaconda.
MSBUILD : error MSB1009: Project file does not exist. what is the error in CMAKe
For those who have not found python 3 even after updating numpy I found same error but it was due to my anaconda path was not set in system environment variables when I did that it installed properly and opencv was build properly without any error
I hope it helps someone else.
@@TheCodingBug Thankyou for such great effort it was the best tutorial for opencv cpu installation short and clear👍keep up the good work
hi how did you do it?
@@kristelquezon4624 I did everything as mentioned in the video but build for python was still unavailable so when I completed the whole process i found that in the end the python folder would be missing which would contain the main file
Then after that I tried to recheck what was missing and I found that my anaconda path was not there in system environment variable so when I added that the error disappeared you can just search environment variable in your windows search bar you will find two things i found two things environment variable for lenevo(I have legion 5 pro) and below was system variable try to add your required python path to 'system' variable
Could you do the same introduction for C++?
You must have had previous installations as from a fresh Win10 installation this tutorial doesnt work. DLLs are missing. For example when installing Anaconda you need to add it to the path for those api dlls.
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!
same here did you find a solution?
Should we be alarmed by the multitude of warnings being displayed in cmd when building OpenCV?
The warnings are okay but errors are not.
@@TheCodingBug Is it mandatory to build OpenCV in virtual environment as well (in addition to base)?
@@angelinakancheva3990 if you'd like to use it in both environments, then yes. Otherwise just base version would suffice.
@@TheCodingBug I see, many thanks. I am watching this video before moving on to your video about installing Darknet for Yolov4, just wondering: do you think the configuration should work for Yolov2 as well? It's getting really hard to find a good tutorial on installing darknet for version 2 these days!
@@angelinakancheva3990 I have tested this build on yolov4 and yolov3. I am not sure about yolov2.
Hi there, it seems even after upgrading numpy the openncv module shows python3 unavailable. how to resolve this?
same problem here
@@sebastianm3505 I had to reinstall Anaconda (and I chose to include the path during the installation, not sure if that was necessary). I had two versions of Anaconda installed somehow. I had upgraded Anaconda and it showed up twice in Windows Apps and Features so I uninstalled both and then reinstalled. Anyways, that worked for me. YMMV.
@@RobertJohnson-xg5kh thanks that was solved with clean installation all steps again. Still stuck on another error
Is it also possible to perform all the setups for installing opencv with gpu support
with both native installation of python and anaconda or we just need to keep Anaconda ?
You can do it with native Python too.
Everything was executed well. But when I ran the test script file I got more speed when using the CPU.
Here is the output.
CUDA --- 1.0304639339447021 seconds ---
CPU --- 0.9209995269775391 seconds ---
My PC Specs are CPU - AMD Ryzen 9 5900x and GPU - 3080 Vision.
It only works for Nvidia GPUs.
@@TheCodingBug are u dumb he said he had a 3080 nvidia
Thanks, but i'm stuck here:
"C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release
Unexpected token 'build' in expression or statement.
please help!
I am not getting cv2 in site packages...can you pls tell what's the problem
Hİ TheCodingBug,
First of all thanks for this nice video!!
I am getting the following warning in the opencv_world folder when installing OpenCV on Windows 10. Do you have any information about what originated from? Is it important?
warning : field of class type without a DLL int
erface used in a class with a DLL interface
Thank you for your comment.
This warning is okay. If there are no errors, everything will work fine at the end.
It would be a good idea to do a video on steps to update opencv and tensorflow gpu versions. Always afraid I mess up something if I simply uninstall the previous version.
That's true. For tensorflow, it's really easy. Just see the supported cuda and cudnn versions against a particular tensorflow version and install them. Use Anaconda for that.
For opencv, it becomes headache though.
Great video, thanks.
Can I follow the same process for C++?
I have not tried it myself. But I guess you can. Because OpenCV source can be used to generate bindings for Python and C++.
@@TheCodingBug thanks, I’ll give it a try.
Thank you!
help a lot, thx
My problem is when chosing cuda_arch. it dosen;t have any version to selecting. When I select the version fit to mine. it doesn't;t work. Error happened. How to solve?
@TheCodingBug had to use cuda 11.2 due to rtx 3070 showing some warnings with DLL when installing.
Eventually got to the point where I import cv2 in gpu environment still says no module named cv2 followed all steps with clean plate and apart from warning in cmake about wrong version of python that asked me to add something to path file there were no other problems. Any idea how to solve it?
PS. import cv2 in python does work without gpu ve
C:\Program' is not recognized as an internal or external command,
operable program or batch file.
sir this error occurs..how to fix it
Hi, you are my last hope, I am using OpenCV 4.4.0 with numpy 1.20.0, trying to bind tensorflow version 2.4.0 and it gives me an error (NotImplementedError: Cannot convert a symbolic Tensor (random_zoom/zoom_matrix/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported), but it also works fine on numpy version 1.19.2, but from this version CV2 crashes with an error (RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd). Please tell me what could be the problem?
python 3.8.5
So what to do after everything works and your example works but there is no intellisense or autocomplete for cv2? I did everything as said and i think its a bit of topic but i think alot of people gonna ask this as i am new in python dev.
I use VSCode with Kite. And it works just fine. I have not checked other IDEs. Which one are you using?
@@TheCodingBug i tried vscode and pycharm both dont auto complete i don't think its ide problem
You will need to copy
/envs/opencv_gpu/site-packages/cv2/python-3.8/cv2.cp38-win_amd64.pyd
to
/envs/opencv_gpu/DLLs/
Then it works!
@@TheCodingBug once i copy it shows error
ImportError: DLL load failed while importing cv2: The specified module could not be found.
@@dainiustrijonis4944 I am not sure how to help here!
Does this work with python version 3.9?
Yes
@@TheCodingBug Thanks, I am running into another issue, I feel like my installation stops early, because after the installation ends I don't see the python binding file in the build/Release folder and I don't see the cv2 folder in site-packages. I don't know where it went wrong, I have all the prerequisites set as mentioned in the video.
@@masrur_rah Have you figured it out? Same here.
Thank you.
It is a very helpful video.
Still have problem at 4:25. and still get the message "Unavailable: java python2 python3"
change your numpy version and/or uninstall all python versions that isn't installed with anaconda and it should be fixed
Hey coding bug I wanted to ask does the old version of gpu like GTx 1050 will work on this ? please reply its urgent need
At the time of recording this tutorial, it worked on GTX1050 amd GTX1060. Not sure now after release of new versions of opencv, cuda, and visual studio.
Hi, thanks for the detailed video. I followed the steps exactly as per the video (excluding the virtual environment part as I don't think I need?) but when I try and import cv2 as cv and copy your test script, calling cv.cuda_GpuMat() and other functions such as cv.imshow() and cv.imread(), pyCharm says it cannot find the reference and as such the library doesn't work. Do you know why this might be? Thanks!
Hi.
Test it in Anaconda prompt. If it works there, there might be additional configuration required for p.ycharm
It is showing alot of warnings is it ok ???...Please Guide
Yes warnings are okay.
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 !!
Maybe things are changed over the years. I'll look into it next month.
is it install inside in anaconda? and when ı instaall opencv-gpu it will work with cnn model right?
Yes it'll install inside anaconda.
Which CNN model are you trying to use?
@@TheCodingBug i didnt start but for my project ı will use yolov2 or 3
@@aysebeyzaunal3472 yes you would be able to use yolov3 or yolov4 with GPU support.
Follow this tutorial after installing OpenCv with GPU support.
th-cam.com/video/FjyF03uawsA/w-d-xo.html
@@TheCodingBugThank youuuu!! Can ı ask something else? ı have a dataset that containts 12 gb photos and ı have to train this. ı search and found that ı can use 2 gpus. But ı dont know how and dont know how to found another gpu? Can you help me
i have python 3.7.0 and cuda 10.1 in windows 10.I got error in cmake install in command prompt
@Robert Johnson thanks will try that
I have no gpu so what should I do
Get a GPU :)
@@TheCodingBug ha ha ha...funny ques and funny reply....But i dont no details about openCV and am very new.Thats why asking...Can I do custom Object in yolo v4? I am following your all vedio...May you please let me know can i do The project without gpu?
@@hasibulislamsquads513 try to run yolov4 on colab gpu
Bro I am getting this error " (-217:Gpu API call) cuDNN did not return a suitable algorithm for convolution. in function " Can you please help me with this .Please
really good tutorial, exactly what I was looking for.
I have few questions, first, is cuDNN necessary? as I just want this for image processing (mainly just template matching),
speaking of which, template matching will support Cuda? I really don't know, I am just learning, and there is very little info I get on google.
what I am doing is, basically making a dumb bot, which takes a screenshot of every frame of a simple 2d game that I made, and process some auto click actions, obviously, its a game testing bot, which needs to detect around 50 objects per frame, but this template matching is too heavy it takes 1 second for just a single frame (script run just on a single main thread), I have 2 choices, multi-threading or Cuda, I am going for Cuda just because it's cool (lol), I mean I believe this will be simpler than handling multi-threads.
Thank you for your appreciation.
It depends how the template matching algorithm is implemented. If you will be able to use OpenCV DNN module, then yes it can use GPU acceleration and you also need cuDNN.
If you are using other functions of OpenCV to implement template matching, you might be able to use CUDA supported operations (such as resizing image, conversion to other color spaces etc). But for that, you will have to create GPUMatrix and then "upload" your image to that GPUMatrix, perform all operations on this Matrix and then "download" the image back to normal numpy array.
I hope it will give you some idea and direction to move forward.
@@TheCodingBug I build it successfully, on pycharm env it's now not throwing any error I can do imread, imshow and waitKey functions, but in pycharm intellisense not working just for opencv, is there anything I am missing (also in pycharm, opencv is not listed in packages list.
@@BurhanuddinKalawadwala I am not sure about pycharm. But Kite works for opencv in my virtual environment. I ise VSCode.
@@TheCodingBug hay there, I might need one more help from you, since in my game background image is keep changing per level, I used the mask in cpu version of template matching, but I found out cuda version of template matching doesn't support mask, can you confirm me that's true? if so, I'll switch to multi-threading solution, I'll try to find meanwhile, if you have multi-threading openvc video, please link me :)
@@BurhanuddinKalawadwala l am afraid I do not have this information.
First of all nice tutorial. Was frusturated for 3 days. The only problem was when I tried the test_script.py on my RTX3060 notebook CPU time was lesser than CUDA
same issue here what did you do for sloving that issues
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.
i have entered this code to cmd "C:\Program Files\CMake\bin\cmake.exe" --build "C:\OpenCV_Build\build" --target INSTALL --config Release. But i got error. Because Cmake want to create a file in Windows apps folder. But this folder is read-only and i cant change it. I checked everything i did. Can you help me?
Start cmd as administrator and try again.
@@TheCodingBug i have already tried it
when i install opencv in virtual environment it shows error
"C:\openCV_build\opencv-4.5.1\modules\python\src2\cv2.cpp(33,10): fatal error C1083: Cannot open include file: 'numpy/nd
arrayobject.h': No such file or directory [C:\openCV_build\build\modules\python3\opencv_python3.vcxproj]"
what should i do.
Did this error get resolve?
got as far as to upgrading numpy which was succesfull then I hit cmake configure but it doesnt change anything while compiling I see "no numpy module"
Thanks for your help, but i still have a problem with openCV, it works fine, but when i try to execute my OpenCV project with pyinstaller or auto-py-to-exe Opencv is not imported and the executable file won't start. have any idea on how to fix this
I still get the module not found :(!!! I followed the tutorial step by step withouy missing anything :(
I am sorry to hear that! I have tried to address all possible issues. I am not sure what other problem might be.
Maybe installing everything with a clean slate would help.
@@TheCodingBug thanks for your reply!
I checked and i .py file in both folderd and i still get the error i reformatef my pc and installed it and got the same error :(
@@TheCodingBug it says bootstrap ()
Import error :dll load failed while importing cv2: the specified module could not be found.
@@smraro Make sure you are not using two different environments.
Also, you can try creating a virtual environment and install for that particular environment.
@@TheCodingBug I'm just using the base environment, I'll try to install to a virtual and check
hi, i got error named by "ImportError: DLL load failed while importing cv2" when i tried to import cv2 in base enviroment in anaconda prompt. what should i do? thanks in advance.
Make sure you have followed the steps and have not missed anything. Also, I hope you have not deleted "lib" and "install" folder as part of cleanup.
CUDA and cuDNN versions should also match as latest versions do not work.
@@TheCodingBug CUDA and cuDNN versions is matching. I didn't delete lib and install folder. I tried this steps 3 times, but everytime i got that error.
@@jabbaalien1471 I am not sure what the error could be!!! I have built it again and it works for me!
Dİd you solved this ?
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
Thanks for this video.
Pl make a tutorial video to use cuda with opencv like how to detect face ?
Thank you for your comment. I'll be making face detection videos within next couple of weeks.
Dear coding bug, while configuring the, I get a lot of SSL connect errors. Configuration completes but these errors are written while loading. Would this be a problem? I could not manage to do what you said. Could it be not happening because of these SSL connect errors I got?
After your command cmake could not load cache
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
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.
Hi, I was doing all steps in order and I did not receive any errors. However, in the final step, when I want to “import cv2”, I’ve got this error?
“DLL load failed while importing cv2: The specified module could not be found”
Do you have any idea how can I solve this problem?
I had: Windows 10 Enterprise N LTSC
GPU 980 GTX
hello great video !! ,
I have a question I followed every step but when I try to import in anaconda I get this error
\anaconda3\lib\site-packages\cv2\__init__.py", line 109, in load_first_config
raise ImportError('OpenCV loader: missing configuration file: {}. Check OpenCV installation.'.format(fnames))
ImportError: OpenCV loader: missing configuration file: ['config-3.9.py', 'config-3.py']. Check OpenCV installation.
I had ssl / TLS error when cmake tried to make download ;(
Hi, I have a question.
If I used python 3.9.7 as the interpreter to build the OpenCV, can I use another version of python (e.g., 3.7.13) for the virtual env?
I tried but get this error: ImportError: OpenCV loader: missing configuration file: ['config-3.7.py', 'config-3.py']. Check OpenCV installation.
Is there any way to build the OpenCV for multiple python versions or do I need to re-build every time for a different version of python?
Rebuild for each version
@@TheCodingBug So, for OpenCV with CUDA in the virtual environment, it can't be a different major Python version (e.g., 3.9 and 3,7) than the Base environment.
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