Emgu.CV.CvInvoke的类型初始值设定项引发异常

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 。


安装此运行库,程序正常了。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

容沁风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值