当前位置:网站首页>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.设置参数
边栏推荐
- Will Huawei be the next one to fall
- Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
- The difference between stratifiedkfold (classification) and kfold (regression)
- Libuv库 - 设计概述(中文版)
- The 35 required questions in MySQL interview are illustrated, which is too easy to understand
- PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
- R语言gt包和gtExtras包优雅地、漂亮地显示表格数据:nflreadr包以及gtExtras包的gt_plt_winloss函数可视化多个分组的输赢值以及内联图(inline plot)
- 8 Queen question
- CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
- Can newly graduated European college students get an offer from a major Internet company in the United States?
猜你喜欢

Flutter动态化 | Fair 2.5.0 新版本特性

2022-02-14 incluxdb cluster write data writetoshard parsing

Students who do not understand the code can also send their own token, which is easy to learn BSC

Annotation and reflection
![[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]](/img/8b/bef94d11ac22e3762a570dab3a96fa.jpg)
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]
![【R】 [density clustering, hierarchical clustering, expectation maximization clustering]](/img/a2/b287a5878761ee22bdbd535cae77eb.png)
【R】 [density clustering, hierarchical clustering, expectation maximization clustering]

Flink code is written like this. It's strange that the window can be triggered (bad programming habits)

rxjs Observable filter Operator 的实现原理介绍

This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version

Multi table query of MySQL - multi table relationship and related exercises
随机推荐
The difference between stratifiedkfold (classification) and kfold (regression)
106. 如何提高 SAP UI5 应用路由 url 的可读性
AI 考高数得分 81,网友:AI 模型也免不了“内卷”!
User and group command exercises
Convolution emotion analysis task4
[sort] bucket sort
mysql更新时条件为一查询
道路建设问题
Error running 'application' in idea running: the solution of command line is too long
The 35 required questions in MySQL interview are illustrated, which is too easy to understand
JS 将伪数组转换成数组
Mycms we media mall v3.4.1 release, user manual update
【R】 [density clustering, hierarchical clustering, expectation maximization clustering]
stm32和电机开发(从mcu到架构设计)
Libuv Library - Design Overview (Chinese version)
Can newly graduated European college students get an offer from a major Internet company in the United States?
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter III exercises]
Resource Cost Optimization Practice of R & D team
Flick SQL knows why (10): everyone uses accumulate window to calculate cumulative indicators
MySQL_ JDBC