EmguCV in Unity 5. Problems with dll-files

i have a problem with Emgu CV in Unity 5. I followed the instructions of other Threads and copy the EmguCV dlls
in the Plugin-folder and do some more steps. When I’m running a small testprogramm where I use EmguCV everything is ok.
But when I try to get my own EmguCV-project running into Unity there are a lot of errors because of missing dll files
or because he is not able to load some classes. For example he has problems with the PresentationCore. If I
add the Assembly to the PresentationCore in Visual Studio he still don’t know the classes I’m using out of the
PresentationCore. I’ve copied the PresentationCore.dll into the Plugin-folder of my Unity-project. Now he can compile the
Scripts but running the programm I get Errors like these:

SpritePacker failed to get types from PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
Error: The classes in the module cannot be loaded.
UnityEditor.Sprites.Packer:GetSelectedPolicyId()

DllNotFoundException: MSVCR80.dll
.?A0xe96b2b07.clock_wrapper ()

TypeLoadException: A type load exception has occurred.

DllNotFoundException: wpfgfx_v0300.dll
System.Windows.Media.FactoryMaker..ctor ()

FileNotFoundException: Could not load file or assembly ‘UIAutomationTypes, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies.

Anyone there who had similar problems and knows how to solve them? Or just an idea what I’m doing wrong?

Thanks for your help


Source: dll

Leave a Reply