IntegratedSoftware icon indicating copy to clipboard operation
IntegratedSoftware copied to clipboard

编译BuildDLL.sln时提示找不到MVSDK命名空间Could not find namespace MVSDK

Open NicoWangc opened this issue 3 years ago • 8 comments

编译BuildDLL.sln时提示找不到MVSDK命名空间

BuildDLL - Microsoft Visual Studio(管理员) 2022_3_21 23_00_32

NicoWangc avatar Mar 21 '22 15:03 NicoWangc

编译BuildDLL.sln时提示找不到MVSDK命名空间

BuildDLL - Microsoft Visual Studio(管理员) 2022_3_21 23_00_32

您好,Camera.MindVision项目代码仅供参考,编译结果不会影响软件运行,如果想编译通过,可以安装迈德威视软件驱动并引用相关DLL http://www.mindvision.com.cn/rjxz/list_12.aspx?lcid=138

jiaowomomo avatar Mar 21 '22 15:03 jiaowomomo

安装迈德威视SDK后引入dll编译通过,插上相机MindVision 演示程序可以收到图像,软件打开后看不到相机 1657547375984

jiansuper avatar Jul 11 '22 13:07 jiansuper

安装迈德威视SDK后引入dll编译通过,插上相机MindVision 演示程序可以收到图像,软件打开后看不到相机 1657547375984

提供一个思路: (1)代码上调用的相机类型为None,可更改为迈德威视; image (2)需要将MVSDK.dll放置到Debug目录下; image 或者通过以下事件,加载CameraDLL中的MVSDK.dll到程序集中; image (3)完成程序集加载后,需要调用InitCamera()方法; image

jiaowomomo avatar Jul 11 '22 16:07 jiaowomomo

谢谢 373d89426554f8a430aafa0825d2236

jiansuper avatar Jul 11 '22 21:07 jiansuper

但是点play出现下面错 fc33a43d011b992bf2597a5816a49f9

jiansuper avatar Jul 11 '22 21:07 jiansuper

从相机获取图像 e1b5e518fe407018282b2160f7b28b0

jiansuper avatar Jul 11 '22 21:07 jiansuper

错误出现在 c57f1a9c3d080055d3867c7283424d9

jiansuper avatar Jul 11 '22 21:07 jiansuper

错误出现在 c57f1a9c3d080055d3867c7283424d9

其实这两个异常是同一原因,应该您调试测试也能发现问题,不如试着尝试一下解决Image为Null的异常,看看效果。

jiaowomomo avatar Jul 12 '22 01:07 jiaowomomo