摘要: 1.官方下载的dll 对应的版本使用还会爆出一些异常假如出现可以考虑以下 1.拷贝的时候把pdb 也一起拷贝,而且要版本对应起来 阅读全文
posted @ 2019-10-23 21:01 孤独的求学 阅读(781) 评论(0) 推荐(0) 编辑
摘要: using (FileStream fr= File.OpenRead("2.xlsx")) { //创建工作簿,2007使用XSSFWorkbook,2003使用HSSFWorkbook IWorkbook wk = new XSSFWorkbook(fr); //得到工作簿中的第一张表 ISheet sheet = wk.GetSheetAt(0); //查看表中总共有多少行 for (int 阅读全文
posted @ 2019-08-28 14:15 孤独的求学 阅读(231) 评论(0) 推荐(0) 编辑
摘要: //引用如下两个命名空间using Cognex.VisionPro; using Cognex.VisionPro.Display; // 初始化图像 private void InitializeShapes() { //声明矩形 CogRectangle cgRect = new CogRectangle(); //声明圆形 CogCircle cgCirc = new CogCircle( 阅读全文
posted @ 2019-08-21 15:32 孤独的求学 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: 1.新建登陆用户名,须赋予数据库访问权限方可访问已有的数据库,可以参考如下图片 阅读全文
posted @ 2019-07-25 09:57 孤独的求学 阅读(339) 评论(0) 推荐(0) 编辑
摘要: using Cognex.VisionPro.FGGigE; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Cognex.VisionPro; namespace ClassLibrary1 { ... 阅读全文
posted @ 2019-07-17 13:41 孤独的求学 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: 1 using Cognex.VisionPro; 2 using Cognex.VisionPro.FGGigE; 3 using Cognex.VisionPro.FGGigE.Implementation.Internal; 4 using Cognex.VisionPro.ToolBlock; 5 using System; 6 using System.Collection... 阅读全文
posted @ 2019-06-27 19:07 孤独的求学 阅读(4131) 评论(1) 推荐(2) 编辑
摘要: 脚本分为简单脚本和高级脚本,假如别人写的脚本在自己的脚本中无法实现,可以尝试切换下简单脚本/高级脚本试一试 简单脚本可以直接使用: 高级脚本:需要转换格式 阅读全文
posted @ 2019-06-24 17:00 孤独的求学 阅读(3275) 评论(0) 推荐(0) 编辑
摘要: using Cognex.VisionPro.FGGigE; using Cognex.VisionPro.FGGigE.Implementation.Internal; //关闭相机连接,防止程序报错 CogFrameGrabberGigEs cameras = new CogFrameGrabberGigEs(); t... 阅读全文
posted @ 2019-06-19 14:36 孤独的求学 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: private string path = AppDomain.CurrentDomain.BaseDirectory + "12.vpp"; private string path1 = AppDomain.CurrentDomain.BaseDirectory + "CCD.vpp"; private string path2 = AppDom... 阅读全文
posted @ 2019-06-19 08:47 孤独的求学 阅读(1826) 评论(0) 推荐(0) 编辑
摘要: private string path = AppDomain.CurrentDomain.BaseDirectory + "12.vpp"; private string path1 = AppDomain.CurrentDomain.BaseDirectory + "CCD.vpp"; priv 阅读全文
posted @ 2019-06-19 08:41 孤独的求学 阅读(2343) 评论(0) 推荐(1) 编辑