当前位置:网站首页>HALCON联合C#检测表面缺陷——HALCON例程autobahn
HALCON联合C#检测表面缺陷——HALCON例程autobahn
2022-07-03 13:04:00 【必须奔跑的Zheng】
前面的文章我们讨论了最基本的框架原理,大家如果想看哪一方面的知识可以留言,我在专栏中来说一说。
这段时间我打算分享一下HALCO的一系列例程。我们在检测中很多时候都无从下手,原因很简单我们积累的算子太少了。HALCON的算子很多,我们需要慢慢积累然后活学活用,运用不同的组合来解决实际问题。
大家可以打开例程autobahn
这例程使用了方法是blob分析方法,这里的关键算子如下
生成一个网格区域,
gen_grid_region (Grid, MinSize, MinSize, 'lines', 512, 512)
生成一个网格区域,
sobel_amp (Mask, Gradient, 'sum_abs', 3)
提取边缘,我们知道边缘一定是有明暗变化,才会形成。所以我们很容易提取车道线和网格汇集的地方。
利用blob提取出车道线即可
threshold (Gradient, Points, 20, 255)
上面的几行代码就是这个例程的关键地方。我们下面一行一行来看
1.从新打开一个窗口
dev_update_window ('off')
dev_close_window ()
dev_open_window (0, 0, 768, 575, 'black', WindowID)
2.设置参数
边栏推荐
- JS convert pseudo array to array
- The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti
- Can newly graduated European college students get an offer from a major Internet company in the United States?
- Multi table query of MySQL - multi table relationship and related exercises
- [today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
- AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
- 35道MySQL面试必问题图解,这样也太好理解了吧
- MySQL functions and related cases and exercises
- Setting up Oracle datagurd environment
- [how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
猜你喜欢
Error running 'application' in idea running: the solution of command line is too long
The difference between stratifiedkfold (classification) and kfold (regression)
使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
使用Tensorflow进行完整的深度神经网络CNN训练完成图片识别案例2
[sort] bucket sort
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
Resolved (error in viewing data information in machine learning) attributeerror: target_ names
Flutter动态化 | Fair 2.5.0 新版本特性
随机推荐
开始报名丨CCF C³[email protected]奇安信:透视俄乌网络战 —— 网络空间基础设施面临的安全对抗与制裁博弈...
stm32和电机开发(从mcu到架构设计)
栈应用(平衡符)
Task6: using transformer for emotion analysis
Flink SQL knows why (19): the transformation between table and datastream (with source code)
Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
Fabric. JS three methods of changing pictures (including changing pictures in the group and caching)
编程内功之编程语言众多的原因
In the promotion season, how to reduce the preparation time of defense materials by 50% and adjust the mentality (personal experience summary)
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
Flutter动态化 | Fair 2.5.0 新版本特性
MapReduce implements matrix multiplication - implementation code
Can newly graduated European college students get an offer from a major Internet company in the United States?
物联网毕设 --(STM32f407连接云平台检测数据)
MySQL_ JDBC
Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
35道MySQL面试必问题图解,这样也太好理解了吧
Flink SQL knows why (7): haven't you even seen the ETL and group AGG scenarios that are most suitable for Flink SQL?
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory