EMCU 的Bin\X64和Bin\X86路径,已经添加在PATH环境变量中。
使用VS2008学习版。
有标题所述的异常错误。
Open CV unmanaged dll
Copy the OpenCV dll files: opencv_calib3d{XXX}.dll, opencv_contrib{XXX}.dll, opencv_core{XXX}.dll, opencv_features2d{XXX}.dll, opencv_ffmpeg{XXX}.dll, opencv_flann{XXX}.dll, opencv_gpu{XXX}.dll, opencv_highgui{XXX}.dll, opencv_imgproc{XXX}.dll, opencv_legacy{XXX}.dll, opencv_ml{XXX}.dll, opencv_objdetect{XXX}.dll, opencv_video{XXX}.dll and cvextern.dll to the execution directory, where {XXX} is the OpenCV version number.
拷贝上述文件到 Debug目录下,不好用。 有人建议拷贝所有DLL到项目下,500多M,拷贝了也不行。
仔细看了一下依赖关系:
For version 2.4+ the bundled OpenCV binary is build with Visual Studio 2010, you will needs to installed MSVCRT 9.0 SP1 x86 or MSVCRT 9.0 SP1 x64 to resolve the dependency issue.
2.4版本以上的OPENCV是用VS2010编译的,所以需要MSVCRT 9.0 SP1 x64(我是64位Win7,开始还心思64位系统有问题,正发愁)。
以前莫名其妙好用,是因为自己装的VS2010,而这次不好用是因为安装的是VS2008 。
安装此运行库,程序正常了。