C#实现人脸识别报错解决方法Emgu.CV.CvInvoke‘ threw an exception. ---> System.BadImageFormatException: 试图加载格式不正确的程

无法启动此程序,因为计算机中丢失 api-ms-win-crt-runtimne-11-1-0.dll

安装VC_redist.x64.exe或者VC_redist.x86.exe即可解决

有误:System.TypeInitializationException: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception. —> System.BadImageFormatException: 试图加载格式不正确的程序。 (Exception from HRESULT: 0x8007000B)
at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
at Emgu.CV.CvInvoke…cctor()
— End of inner exception stack trace —
at Emgu.CV.CvInvoke.Imread(String filename, ImreadModes loadType)
at CCIMS.Form_ShowDisplay.SnapSaveNewFace(String image_name, String ip) in D:\2025\demo\deme1Form.cs:line 13247 时间:2025-01-10 14:58:50

拷贝dll到x64文件夹或者x86文件夹
dll如下:
concrt140.dll
cvextern.dll
libusb-1.0.dll
msvcp140.dll
msvcp140_1.dll
msvcp140_2.dll
msvcp140_atomic_wait.dll
msvcp140_codecvt_ids.dll
opencv_videoio_ffmpeg490_64.dll
vcruntime140.dll
vcruntime140_1.dll

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

试行

祝您生活愉快!

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

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

打赏作者

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

抵扣说明:

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

余额充值