-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
When Error Occurs
shimat edited this page Dec 22, 2013
·
2 revisions
- Put all OpenCV's DLLs (e.g. opencv_core245.dll) into the same directory as the executable file (e.g. bin/Debug).
- Check that you have installed Visual C++ Redistributable Package.
- Check that you use the x86 version of OpenCV/OpenCvSharp DLLs.
- Check the target platform of OpenCV you installed (x86 or x64).
- Understand that the x64 version of OpenCvSharp is NOT for 64-bit OS but for x64 OpenCV DLLs.
- If you installed 32-bit OpenCV, you need to use x86 version of OpenCvSharp. And change your project's target platform from "Any CPU" to "x86".
See also: http://www.broculos.net/tutorials/badimageformatexception_was_unhandled/20080307/en