一杯清酒邀明月
天下本无事,庸人扰之而烦耳。
posts - 3121,comments - 209,views - 576万

VisionPro工具分组(因为Vs2019导入VisionPro是全导入,为了方便,可以自建项进行分类)

各选择项

1 VisionPro Tool Edit Controls
2 VisionPro Display Controls
3 VisionPro Shape Edit Controls
4 VisionPro System Controls

各选择项下的组件
VisionPro Display Controls:

CogRecordDisplay

C:\Program Files (x86)\Cognex\VisionPro\ReferencedAssemblies

 会有很多警告窗口,不用管,一路确定,因为有一些dll,不是控件,是不能加进工具箱的

实例

复制代码
 1 using Cognex.VisionPro;
 2 using Cognex.VisionPro.ImageFile;
 3 using System;
 4 using System.Collections.Generic;
 5 using System.ComponentModel;
 6 using System.Data;
 7 using System.Drawing;
 8 using System.IO;
 9 using System.Linq;
10 using System.Text;
11 using System.Threading.Tasks;
12 using System.Windows.Forms;
13 
14 namespace WindowsFormsApp20000
15 {
16     public partial class Form1 : Form
17     {
18         private CogImageFileTool m_ImageFileTool;
19 
20         public Form1()
21         {
22             InitializeComponent();
23 
24             m_ImageFileTool = new CogImageFileTool();
25 
26         }
27 
28         private void DisplayImage(object sender, EventArgs e)
29         {
30             m_ImageFileTool.Operator.Open(Directory.GetCurrentDirectory() + "/Barcode.bmp", CogImageFileModeConstants.Read);
31 
32             m_ImageFileTool.Run();
33 
34             cogRecordDisplay1.Image = m_ImageFileTool.OutputImage as CogImage8Grey;
35 
36             cogRecordDisplay1.Fit(true);
37         }
38     }
39 }
复制代码

posted on   一杯清酒邀明月  阅读(1561)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 上周热点回顾(2.17-2.23)
· 如何使用 Uni-app 实现视频聊天(源码,支持安卓、iOS)
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
历史上的今天:
2022-08-25 Qt 'QApplication'file not found 解决办法
2021-08-25 OpenCV .直方图均衡 CLAHE算法学习
2021-08-25 OpenCV 直方图均衡化原理
2021-08-25 OpenCV 直方图绘制以及直方图均衡化
2021-08-25 OpenCV 图像锐化处理、提高图像对比度
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示