当前位置:网站首页>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.设置参数
边栏推荐
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter III exercises]
- Error running 'application' in idea running: the solution of command line is too long
- Brief analysis of tensorboard visual processing cases
- Setting up Oracle datagurd environment
- Spark实战1:单节点本地模式搭建Spark运行环境
- 栈应用(平衡符)
- Ubuntu 14.04 下开启PHP错误提示
- PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
- SVN添加文件时的错误处理:…\conf\svnserve.conf:12: Option expected
- Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
猜你喜欢

Detailed explanation of multithreading

Logseq 评测:优点、缺点、评价、学习教程
![[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]](/img/c0/92e9e52f1f643b66720697523a1794.png)
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]

Mycms we media mall v3.4.1 release, user manual update

Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)

8 Queen question

Resource Cost Optimization Practice of R & D team

Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?

AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!

CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
随机推荐
Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
Flink SQL knows why (13): is it difficult to join streams? (next)
SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version
Students who do not understand the code can also send their own token, which is easy to learn BSC
IBEM 数学公式检测数据集
February 14, 2022, incluxdb survey - mind map
[sort] bucket sort
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
2022-02-14 incluxdb cluster write data writetoshard parsing
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 7 exercises]
MySQL functions and related cases and exercises
Annotation and reflection
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
Setting up remote links to MySQL on Linux
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]
MySQL installation, uninstallation, initial password setting and general commands of Linux
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
常见的几种最优化方法Matlab原理和深度分析
18W word Flink SQL God Road manual, born in the sky