unable to load cvextern in a c# project

前端 未结 8 1234
青春惊慌失措
青春惊慌失措 2020-12-03 17:18

i\'m trying to debug my program, using emgu and HaarCascade in c#. i\'m getting an exception like so :

Unable to load DLL \'cvextern\': The specifie

相关标签:
8条回答
  • 2020-12-03 17:22

    The cvextern.dll should be in Windows\System32 for x86 and Windows\SysWOW64 for x64 it's work for me. ps: i used NuGet Package 'EmguCV' v3.1.0.1 with VS2015

    0 讨论(0)
  • 2020-12-03 17:23

    Just Install : this nuget package

    Because there are some unmanaged code and you have to add those reference on your project

    See the ChangeLog

    0 讨论(0)
  • 2020-12-03 17:23

    I have solved this problem, by:

    • Right-click the project name, select Add, Select Add existing. Then select all files in the Emgu\libs\x64 folder to add to the project (allow to replace the old files if asked).
    • Then you need to select all the newly added files, right click and select Properties, In the Copy to Output section, select Copy Always.

    It's done.

    0 讨论(0)
  • 2020-12-03 17:29

    My problem for this error was that VS2015 was running the web project in 32 bit IIS Express. The fix was to ensure it was using 64 bit IIS Express

    I added this code at startup to remind myself when setting up a new machine

    if (IntPtr.Size != 8)
    {
         throw new Exception("Change VS options to ensure 64bit IIS Express");
    }
    
    0 讨论(0)
  • 2020-12-03 17:32

    This error popped up on my side with Emgu CV 3.1 and I found for this issue a following working solution:

    copy the cvextern.dll in the application directory \bin\Debug\

    Hope this helps.

    0 讨论(0)
  • 2020-12-03 17:41

    for version 2.3 it`s list increases with opencv_ffmpeg.dll and opencv_flann231.dll.

    0 讨论(0)
提交回复
热议问题