当前位置:网站首页>Halcon combined with C # to detect surface defects -- Halcon routine autobahn
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
2022-07-03 13:44:00 【Zheng who must run】

In the previous article, we discussed the most basic framework principles , If you want to see what knowledge you can leave a message , Let me talk about it in the column .
During this period of time, I plan to share HALCO A series of routines . We can't start many times in the test , The reason is very simple. We accumulate too few operators .HALCON There are many operators , We need to accumulate slowly and then learn and use flexibly , Use different combinations to solve practical problems .
You can open the routine autobahn
The method used in this routine is blob Analysis method , The key operators here are as follows
Generate a grid area ,
gen_grid_region (Grid, MinSize, MinSize, 'lines', 512, 512)
Generate a grid area ,
sobel_amp (Mask, Gradient, 'sum_abs', 3)
Edge extraction , We know that there must be light and dark changes on the edge , Will form . So we can easily extract where the lane lines and grids converge .
utilize blob Extract the lane line
threshold (Gradient, Points, 20, 255)
The above lines of code are the key to this routine . Let's look at it line by line
1. Open a new window
dev_update_window ('off')
dev_close_window ()
dev_open_window (0, 0, 768, 575, 'black', WindowID)
2. Set parameters
边栏推荐
- 编程内功之编程语言众多的原因
- Flutter dynamic | fair 2.5.0 new version features
- JS 将伪数组转换成数组
- [quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
- Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
- Road construction issues
- R语言使用data函数获取当前R环境可用的示例数据集:获取datasets包中的所有示例数据集、获取所有包的数据集、获取特定包的数据集
- [how to earn a million passive income]
- Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
- Red hat satellite 6: better management of servers and clouds
猜你喜欢

Can newly graduated European college students get an offer from a major Internet company in the United States?

MySQL_ JDBC

又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了

Golang — 命令行工具cobra

The solution of Chinese font garbled code in keil5

MySQL

道路建设问题

Annotation and reflection

Flink SQL knows why (12): is it difficult to join streams? (top)

User and group command exercises
随机推荐
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
STM32 and motor development (from MCU to architecture design)
MySQL installation, uninstallation, initial password setting and general commands of Linux
Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
The network card fails to start after the cold migration of the server hard disk
太阳底下无新事,元宇宙能否更上层楼?
Kivy tutorial how to load kV file design interface by string (tutorial includes source code)
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
Introduction to the implementation principle of rxjs observable filter operator
物联网毕设 --(STM32f407连接云平台检测数据)
道路建设问题
logback日志的整理
Mycms we media mall v3.4.1 release, user manual update
User and group command exercises
SQL Injection (POST/Search)
Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
pytorch 载入历史模型时更换gpu卡号,map_location设置
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
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
Brief analysis of tensorboard visual processing cases