无法启动此程序,因为计算机中丢失 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