当前位置:网站首页>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.设置参数
边栏推荐
- Open PHP error prompt under Ubuntu 14.04
- Flink SQL knows why (19): the transformation between table and datastream (with source code)
- Tencent cloud tdsql database delivery and operation and maintenance Junior Engineer - some questions of Tencent cloud cloudlite certification (TCA) examination
- Spark practice 1: build spark operation environment in single node local mode
- MapReduce实现矩阵乘法–实现代码
- The shadow of the object at the edge of the untiy world flickers, and the shadow of the object near the far point is normal
- Road construction issues
- Reptile
- Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
- Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
猜你喜欢
Kivy tutorial how to automatically load kV files
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
今日睡眠质量记录77分
Kivy教程之 如何自动载入kv文件
Flink SQL knows why (19): the transformation between table and datastream (with source code)
Elk note 24 -- replace logstash consumption log with gohangout
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]
已解决(机器学习中查看数据信息报错)AttributeError: target_names
2022-02-14 incluxdb cluster write data writetoshard parsing
[sort] bucket sort
随机推荐
Will Huawei be the next one to fall
Useful blog links
PostgreSQL installation
父亲和篮球
Smbms project
[how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
mysql更新时条件为一查询
栈应用(平衡符)
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
The R language GT package and gtextras package gracefully and beautifully display tabular data: nflreadr package and gt of gtextras package_ plt_ The winloss function visualizes the win / loss values
Today's sleep quality record 77 points
【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
Libuv Library - Design Overview (Chinese version)
Flick SQL knows why (10): everyone uses accumulate window to calculate cumulative indicators
Logback 日志框架
rxjs Observable filter Operator 的实现原理介绍
Ubuntu 14.04 下开启PHP错误提示
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
JS 将伪数组转换成数组
R语言使用data函数获取当前R环境可用的示例数据集:获取datasets包中的所有示例数据集、获取所有包的数据集、获取特定包的数据集