实例介绍
【实例简介】C#Halcon功能搬运
1、校验工具
主要使用“AOi多列”
功能:将txt文件流下的多少个txt文件的哪行哪列汇总到控件内,加入对比数据查找超规参数,修改即按照范围内进行修改
操作步骤
(1):在输入框输入需要的列数(例:输入2,3即所有文件内第二、第三列)*空白列分割可以让各个txt的内容隔开
(2):导入txt数据->选择文件夹流(例:Debug下测试文件里的校验文件)
(3):导入后会弹出“参数修改”选项,在输入框输入范围-并插入新文件流下第一个txt即标准参数,
点击显示超规参数不在范围内的显红
(4):Excel文件导出
2、图像识别和翻译
基于百度OCR和谷歌翻译需要联网
(1):将想要识别的图像ctrl v到文本框即可
(2):在翻译文本框也可以粘贴并委托按下翻译按钮
(3):移动图像时保留区域
3、Halcon工具-功能
(1):将图像托到halcon窗体就可以显示图像啦!!
(2):图像缩放:选择后可以放大 移动图像
(3):例图在Debug下测试文件里的例图
(4):导出区域文件(地址在Debug下区域文件里)
1)-图像处理
(1):除了彩色图像处理其余只能执行一个
2)-图像降噪
(1):halcon功能之阈值分割与面积筛选
(2):去除不掉的区域使用手动降噪功能里的涂刷工具去除不必要的区域
3)-图像卡尺
(1):halcon功能之绘线抓边 绘制完成后显示坐标
(2):绘制时强制角度功能
(3):在dataGridView控件点击某个值后会记录 下次再点击会记录差值
4)-运动检测
null
7/6新增功能:阈值分割后选中图像区域选择 点击某个区域后状态栏显示该区域面积信息
7/7修复了已知的bug
7/8修复了面积显示不是该区域而是轮廓的问题
修复了图像翻译页中文输入错乱的问题
新增修改面积筛选上限
【实例截图】
【核心代码】
.
├── C#Halcon的小功能.zip
└── 工具箱
├── App.config
├── Class1.cs
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── Halcon.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Translator.cs
├── bin
│ └── Debug
│ ├── AipSdk.dll
│ ├── CYQ.Data.dll
│ ├── Interop.SpeechLib.dll
│ ├── MSScriptControl.dll
│ ├── Microsoft.Office.Interop.Excel.dll
│ ├── Microsoft.Web.Infrastructure.dll
│ ├── Newtonsoft.Json.dll
│ ├── Newtonsoft.Json.xml
│ ├── System.Web.dll
│ ├── halcon.dll
│ ├── halconc.dll
│ ├── halcondotnet.dll
│ ├── halcondotnet.xml
│ ├── 工具.ico
│ ├── 区域文件
│ ├── 测试文件
│ │ ├── 例图
│ │ │ ├── 某产品图像.bmp
│ │ │ ├── 彩色汽车图像.jpg
│ │ │ └── 很垃圾需要涂改的图像.bmp
│ │ ├── 校验文件
│ │ │ ├── 2020年12月24日22点21分29秒Data.txt
│ │ │ ├── 2020年12月24日22点21分30秒Data.txt
│ │ │ ├── 2020年12月24日22点21分31秒Data.txt
│ │ │ ├── 2020年12月24日22点21分32秒Data.txt
│ │ │ ├── 2020年12月24日22点21分33秒Data.txt
│ │ │ ├── 2020年12月24日22点21分34秒Data.txt
│ │ │ ├── 2020年12月24日22点21分35秒Data.txt
│ │ │ ├── 2020年12月24日22点21分37秒Data.txt
│ │ │ ├── 2020年12月24日22点21分38秒Data.txt
│ │ │ ├── 2020年12月24日22点46分02秒Data.txt
│ │ │ ├── 2020年12月24日22点46分03秒Data.txt
│ │ │ ├── 2020年12月24日22点46分04秒Data.txt
│ │ │ ├── 2020年12月24日22点46分06秒Data.txt
│ │ │ ├── 2020年12月24日22点46分07秒Data.txt
│ │ │ ├── 2020年12月24日22点46分08秒Data.txt
│ │ │ ├── 2020年12月24日22点46分21秒Data.txt
│ │ │ ├── 2020年12月24日22点46分22秒Data.txt
│ │ │ ├── 2020年12月24日22点46分23秒Data.txt
│ │ │ ├── 2020年12月24日22点46分24秒Data.txt
│ │ │ ├── 2020年12月24日22点46分25秒Data.txt
│ │ │ ├── 2020年12月24日22点46分26秒Data.txt
│ │ │ ├── 2020年12月24日22点46分40秒Data.txt
│ │ │ ├── 2020年12月24日22点46分41秒Data.txt
│ │ │ ├── 2020年12月24日22点46分42秒Data.txt
│ │ │ ├── 2020年12月24日22点46分43秒Data.txt
│ │ │ ├── 2020年12月24日22点46分44秒Data.txt
│ │ │ ├── 2020年12月24日22点46分45秒Data.txt
│ │ │ ├── 2020年12月24日22点46分47秒Data.txt
│ │ │ ├── 2020年12月24日22点46分48秒Data.txt
│ │ │ ├── 2020年12月24日22点46分49秒Data.txt
│ │ │ ├── 2020年12月24日22点46分50秒Data.txt
│ │ │ ├── 2020年12月24日22点46分51秒Data.txt
│ │ │ ├── 2020年12月24日22点46分52秒Data.txt
│ │ │ ├── 2020年12月24日22点46分53秒Data.txt
│ │ │ ├── 2020年12月24日22点46分54秒Data.txt
│ │ │ ├── 2020年12月24日22点46分56秒Data.txt
│ │ │ ├── 2020年12月24日22点46分57秒Data.txt
│ │ │ ├── 2020年12月24日22点46分58秒Data.txt
│ │ │ ├── 2020年12月24日22点46分59秒Data.txt
│ │ │ ├── 2020年12月24日22点47分00秒Data.txt
│ │ │ ├── 2020年12月24日22点47分01秒Data.txt
│ │ │ ├── 2020年12月24日22点47分02秒Data.txt
│ │ │ ├── 2020年12月24日22点47分03秒Data.txt
│ │ │ ├── 2020年12月24日22点47分04秒Data.txt
│ │ │ ├── 2020年12月24日22点47分06秒Data.txt
│ │ │ ├── 2020年12月24日22点47分10秒Data.txt
│ │ │ ├── 2020年12月24日22点47分11秒Data.txt
│ │ │ ├── 2020年12月24日22点47分16秒Data.txt
│ │ │ ├── 2020年12月24日22点47分17秒Data.txt
│ │ │ ├── 2020年12月24日22点47分18秒Data.txt
│ │ │ ├── 2020年12月24日22点47分19秒Data.txt
│ │ │ ├── 2020年12月24日22点47分20秒Data.txt
│ │ │ ├── 2020年12月24日22点47分21秒Data.txt
│ │ │ ├── 2020年12月24日22点47分25秒Data.txt
│ │ │ ├── 2020年12月24日22点47分26秒Data.txt
│ │ │ ├── 2020年12月24日22点47分27秒Data.txt
│ │ │ ├── 2020年12月24日22点47分28秒Data.txt
│ │ │ ├── 2020年12月24日22点47分29秒Data.txt
│ │ │ ├── 2020年12月24日22点47分30秒Data.txt
│ │ │ ├── 2020年12月24日22点47分31秒Data.txt
│ │ │ ├── 2020年12月24日22点47分33秒Data.txt
│ │ │ ├── 2020年12月24日22点47分34秒Data.txt
│ │ │ ├── 2020年12月24日22点47分35秒Data.txt
│ │ │ ├── 2020年12月24日22点47分36秒Data.txt
│ │ │ ├── 2020年12月24日22点47分37秒Data.txt
│ │ │ ├── 2020年12月24日22点47分38秒Data.txt
│ │ │ ├── 2020年12月24日22点47分39秒Data.txt
│ │ │ ├── 2020年12月24日22点47分40秒Data.txt
│ │ │ ├── 2020年12月24日22点47分41秒Data.txt
│ │ │ ├── 2020年12月24日22点47分42秒Data.txt
│ │ │ ├── 2020年12月24日22点47分44秒Data.txt
│ │ │ ├── 2020年12月24日22点47分45秒Data.txt
│ │ │ ├── 2020年12月24日22点47分46秒Data.txt
│ │ │ ├── 2020年12月24日22点47分47秒Data.txt
│ │ │ ├── 2020年12月24日22点47分48秒Data.txt
│ │ │ ├── 2020年12月24日22点47分49秒Data.txt
│ │ │ ├── 2020年12月24日22点47分50秒Data.txt
│ │ │ ├── 2020年12月24日22点47分51秒Data.txt
│ │ │ ├── 2020年12月24日22点47分52秒Data.txt
│ │ │ ├── 2020年12月24日22点47分53秒Data.txt
│ │ │ ├── 2020年12月24日22点47分55秒Data.txt
│ │ │ ├── 2020年12月24日22点47分56秒Data.txt
│ │ │ ├── 2020年12月24日22点47分57秒Data.txt
│ │ │ ├── 2020年12月24日22点47分58秒Data.txt
│ │ │ ├── 2020年12月24日22点47分59秒Data.txt
│ │ │ ├── 2020年12月24日22点48分00秒Data.txt
│ │ │ ├── 2020年12月24日22点48分01秒Data.txt
│ │ │ ├── 2020年12月24日22点48分02秒Data.txt
│ │ │ ├── 2020年12月24日22点48分03秒Data.txt
│ │ │ ├── 2020年12月24日22点48分05秒Data.txt
│ │ │ ├── 2020年12月24日22点48分06秒Data.txt
│ │ │ ├── 2020年12月24日22点48分07秒Data.txt
│ │ │ ├── 2020年12月24日22点48分08秒Data.txt
│ │ │ ├── 2020年12月24日22点48分09秒Data.txt
│ │ │ ├── 2020年12月24日22点48分10秒Data.txt
│ │ │ ├── 2020年12月24日22点48分11秒Data.txt
│ │ │ ├── 2020年12月24日22点48分12秒Data.txt
│ │ │ ├── 2020年12月24日22点48分13秒Data.txt
│ │ │ ├── 2020年12月24日22点48分14秒Data.txt
│ │ │ └── 2020年12月24日22点48分16秒Data.txt
│ │ └── 工具使用方法.txt
│ ├── 效验工具.exe
│ ├── 效验工具.exe.config
│ └── 效验工具.pdb
├── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferences.cache
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── TempPE
│ │ └── Properties.Resources.Designer.cs.dll
│ ├── 效验工具.Form1.resources
│ ├── 效验工具.Properties.Resources.resources
│ ├── 效验工具.csproj.AssemblyReference.cache
│ ├── 效验工具.csproj.CopyComplete
│ ├── 效验工具.csproj.CoreCompileInputs.cache
│ ├── 效验工具.csproj.FileListAbsolute.txt
│ ├── 效验工具.csproj.GenerateResource.cache
│ ├── 效验工具.csproj.ResolveComReference.cache
│ ├── 效验工具.exe
│ └── 效验工具.pdb
├── packages
│ └── Newtonsoft.Json.13.0.1
│ ├── LICENSE.md
│ ├── Newtonsoft.Json.13.0.1.nupkg
│ ├── lib
│ │ ├── net20
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ ├── net35
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ ├── net40
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ ├── net45
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ ├── netstandard1.0
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ ├── netstandard1.3
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ └── netstandard2.0
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ └── packageIcon.png
├── packages.config
├── 工具.ico
├── 继承类.cs
├── 效验工具.csproj
└── 效验工具.sln
21 directories, 170 files
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
网友评论
我要评论