当前位置:网站首页>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.设置参数
边栏推荐
- Red hat satellite 6: better management of servers and clouds
- Multi table query of MySQL - multi table relationship and related exercises
- 用户和组命令练习
- Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
- 8皇后问题
- regular expression
- Anan's doubts
- PowerPoint 教程,如何在 PowerPoint 中将演示文稿另存为视频?
- 开始报名丨CCF C³[email protected]奇安信:透视俄乌网络战 —— 网络空间基础设施面临的安全对抗与制裁博弈...
- Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
猜你喜欢

刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?

研发团队资源成本优化实践

人身变声器的原理

Resource Cost Optimization Practice of R & D team

PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?

常见的几种最优化方法Matlab原理和深度分析

已解决(机器学习中查看数据信息报错)AttributeError: target_names

MySQL functions and related cases and exercises
![[colab] [7 methods of using external data]](/img/cf/07236c2887c781580e6f402f68608a.png)
[colab] [7 methods of using external data]

Annotation and reflection
随机推荐
Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
Spark practice 1: build spark operation environment in single node local mode
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
Brief analysis of tensorboard visual processing cases
Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
【被动收入如何挣个一百万】
MySQL constraints
实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
Libuv库 - 设计概述(中文版)
Setting up remote links to MySQL on Linux
8 Queen question
Anan's doubts
MySQL functions and related cases and exercises
Flink SQL knows why (XV): changed the source code and realized a batch lookup join (with source code attached)
Fabric. JS three methods of changing pictures (including changing pictures in the group and caching)
Task5: multi type emotion analysis
php:  The document cannot be displayed in Chinese
18W word Flink SQL God Road manual, born in the sky
Unity EmbeddedBrowser浏览器插件事件通讯
R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and