I can't install the nvidia installation in cuda toolkit. I don't have a nvidia card. Does that means I can't use emgu.cv? I been on this all yesterday and emgu.cv is still giving me problems.
Here the link that still shows my problem:
Exception initializing Emgu.CV
Actually you can. Run the installer. Then go to the directory where it has unzipped all the files and choose nvcuda.dl_ and using command prompt expand it into nvcuda.dll.
Place this dll in system32 folder.
This should solve the 'nvcuda.dll not found' error.
Related
In the installation instructions for Windows at GoCV we've the below line:
Download and run the MinGW-W64 compiler installer from https://sourceforge.net/projects/mingw-w64/?source=typ_redirect.
I downloaded the mentioned file, but could not find executor file, and could not find anything like x86_64-7.3.0-posix-seh-rt_v5-rev2 as mentioned in the instuctions, any help?
The installation of MinGW-w64 is simple. Either download the installer from
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe
or the appropriate package (as a 7-zip archive) directly:
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.3.0/threads-posix/seh/x86_64-7.3.0-release-posix-seh-rt_v5-rev0.7z/download
Some people (including me) experienced random connection problems with the installer at some point, so the second options might be more straightforward.
I'm trying to write a program that uses SURF algorithm and I know that the nonfree module must be installed separately. I've downloaded and installed the latest version of CMake(3.5.2) and I'm following the instructions from:
https://github.com/itseez/opencv_contrib/ . I'm using the GUI and I run Visual Studio 2015 on a 64 bit Windows 10.
Since I know that for SURF you must include xfeatures2d when it asked me the source of the code I only specified the xfeatures2d folder. When I first pressed the configure button I had some errors(I've attached an image of them). I managed to get rid of one of the errors, the one that said to write a line of code at the top of the file
cmake_minimum_required(VERSION 3.5), but I still have one error:
CMake Error at CMakeLists.txt:4 (ocv_define_module):
Unknown CMake command "ocv_define_module".
I'm also attaching a picture of the CMakeLists.txt. Please help me find the problem.
Also, if you could help my install all modules at once, I would be grateful. Or do I have to set as input every folder in the modules folder?
GUI error and CMakeLists.txt
Try using Visual Studio 12 2013 for compilation, this has worked for me, but not the other (newer) versions of Visual Studio.
I am going insane on this.
I want to open an EPS file using Gimp 2.8.2 installed on a Windows 7 32-bit system (I think the PC itself is 64-bit but for some reason we have 32-bit Windows installed).
I first tried using the instructions on the Gimp site. Installed Ghostscript, created the path variable, all nothing doing. Totally useless Gimp message saying "Unable to open the file" (I knew that already).
Hunted all over the Internet and finally came across this Bugzilla report. Comment 48 suggested that I should just be able to install 2.8.14 with Postscript support and it should work out of the box.
So I uninstalled Gimp, checked the file had gone from the directory list, and installed the new version. Still can't open the EPS file, and it now crashes Gimp with a message just saying "Plugin crashed: "file-ps.exe".
Just to make sure the images are actually ok I went to my Ubuntu system and installed Gimp (2.8.10 this time), opened the eps file... and it works like a charm, no problem.
If anyone has a solution I would be deeply grateful
check out that post:
http://blog.tjitjing.com/index.php/2013/05/solution-error-open-eps-in-gimp-64-bit-with-ghostscript.html
Solution
If you have not already, download and install Ghostscript 64-bit
Copy gsdll64.dll from your Ghostscript bin folder (Eg: C:\Program
Files\gs\gs9.07\bin) to the GIMP bin folder (Eg: C:\Program
Files\GIMP 2\bin)
In the GIMP bin folder first a) Rename the file
libgs-8.dll to libgs-8.old, and then b) Rename gsdll64.dll to
libgs-8.dll
Restart GIMP and opening EPS images should now work
It worked fine for me with GIMP 2.8.14 and gs9.16 on windows 7 64 bit with a fresh install of GIMP from the Gimp web site.
Need to install non-PNP kernel device driver under Windows 7. Old reliable INSTDRV.EXE fails on StartService, claiming "2 -- system cannot find the file specified" although fully qualified path to driver SYS file is absolutely positively accurate. I realize Device Manager has an "install legacy driver" Action menu item, but that requires identifying a specific device, which I don't have. Why doesn't INSTDRV.EXE work under Windows 7? How can I install a non-PNP kernel device driver under Windows 7? Thanks.
As far as I know, on modern Windows you have to write .inf file. Read this short MSDN article.
There is a tool in WDK that helps installing drivers. Just copy it to your driver's folder and run it.
Update:
After submitting this answer I've found another way of installing non-pnp drivers. There is another tool, DevCon. It can be found among other WDK tools (Windows Kits\10\Tools\x64). Just copy DevCon.exe to your driver's folder and execute like this:
devcon.exe install pcscgate.inf Root\pcscgate
Root\pcscgate - device identifier that matches the one in [Model] section of .inf file (yes, you still need that file). DevCon creates an empty device node with this identifier and then installs driver.
I had a similar problem just now, finally solved it by setting Linker/Input/Ignore All Default Libraries to Yes (/NODEFAULTLIB).
I've been asked to build a real-time face recognition application, and after some looking around I've decided to try EmguCV and OpenCV as the facial recognition library.
The issue I'm having at the moment is trying to get the SDK installed and working. I've followed the instructions found here to try and get it running, but I still can't run the samples. Whenever I try and run them, I get the error
The program can't start because nvcuda.dll is missing from your computer.
Try reinstalling the program to fix this problem.
I've tried most of the usual fixes, such as adding the bin folder to my environment path and copying the dll's into my system32 folder, but none of it seems to work.
EmguCV version 2.4.2.1777-windows-x64-gpu
Windows 8
AMD Radeon HD 6700 series graphics card.
I'm assuming this is an issue with the fact that I dont have an nVidia graphics card, but I'm not sure what I can do about it. For now, I'm going to try recompiling the source rather than using the downloaded .exe, and seeing if that helps.
Any suggestions?
Had the same problem, EmguCV 2.4.2 (no matter if x86 or x64) is compiled with GPU and you have to had nvidia GPU with CUDA support. So, if you want for eg. Fisherfaces from 2.4 in C# - wait for non-GPU release or buy/borrow CUDA card ;)
I happen to have the exact same problem as you. Everything is working fine on my computer (WinXP 32-bit) but not on Win7 64-bit computers.
This was because on my computer I already have OpenCV 2.4.2 installed and when I execute my program the path to the OpenCV dll points to the OpenCV folder and not to the dlls in the EmguCV folder. The original OpenCV dll don't have this dependency on NVidia's driver.
I used Dependency Walker to help me find out what was happening, as suggested here.
This link says that only the -gpu packages have gpu processing enabled but as you say the latest version (2.4.2) only a gpu package and no no-gpu package...
I read here that all I needed was to download the latest NVidia drivers to get the nvcuda.dll file but I downloaded many packages and never found this file: gpu computing sdk, cuda toolkit, display drivers, device drivers...
My workaround, instead of using an older version of EmguCV/OpenCV is to use the original dll from OpenCV 2.4.2.
I just used nvcuda.dll from dll-files.com.
It seems the issue is that the latest version on the site does not contain a non-GPU enhanced download, and that the GPU enhanced download requires an nVidia graphics card for CUDA integration.
I successfully downloaded and run the previous version which does not have GPU enhancements.
I had similar problem.
When I compile and run my application on computer with NVIDIA gpu it works fine.
Problem was when I moved app to another computer.
This second computer has no NVIDIA gpu and it threw 'Emgu.CV.CvInvoke' exception.
After many attempts I fortunately solved this problem.
As you mentioned before for now there is only gpu package for version 2.4.2.
I didn't notice this before.
For me solution was:
Copy files: 'cudart64_42_9.dll' and 'npp_42_9.dll' into Debug (application) folder
Copy file 'nvcuda.dll' into System32 folder.
After this steps aplication works on all computers even without NVIDIA gpu/ CUDA.
Other solution might be using opencv universal gpu version (for now is alpha 2.4.9) link: http://sourceforge.net/projects/emgucv/files/emgucv/2.4.9-alpha/
You can download source EmguCV from GIT and compile it, i have done this and works :
http://www.emgu.com/wiki/index.php/Download_And_Installation#Building_from_Git
It generates a non-GPU version of dlls
Regards.
here's also another copy of the dll's:
http://www.kimchiandchips.com/files/vvvv/nvcuda/
so 2 solutions:
Get NVidia CUDA DLL's from the above link. Ideally rename the 64 or 32bit version to nvcuda.dll based on your required platform. Put next to your opencv dll's
Upgrade to 2.4.9 which has universal GPU support
I also had some problems when doing my dissertation using EmguCV for face recognition.
Try to use the stablest version libemgucv-windows-x86-2.4.0.1717.exe
Try not to use the gpu download, this version has the least bugs and the 32-bit is better than the x64.
when compiling for the first time use visual studio 2012.
With this version you wont need to install all the above mentioned. You can see this example to know it really works : http://sourceforge.net/projects/emgufacerecog/