当前位置:网站首页>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
边栏推荐
- Unity render streaming communicates with unity through JS
- HALCON联合C#检测表面缺陷——HALCON例程autobahn
- Spark practice 1: build spark operation environment in single node local mode
- Error running 'application' in idea running: the solution of command line is too long
- SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
- STM32 and motor development (from MCU to architecture design)
- JS convert pseudo array to array
- Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
- SQL Injection (GET/Search)
- AI 考高数得分 81,网友:AI 模型也免不了“内卷”!
猜你喜欢

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

Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu

8 Queen question

Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
![[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion](/img/3b/28327bbf5eb19254f03500a41e2adb.jpg)
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion

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

Complete deep neural network CNN training with tensorflow to complete picture recognition case 2

Road construction issues

MyCms 自媒体商城 v3.4.1 发布,使用手册更新

Detailed explanation of multithreading
随机推荐
8 Queen question
Anan's doubts
Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
Smbms project
Flutter dynamic | fair 2.5.0 new version features
71 articles on Flink practice and principle analysis (necessary for interview)
Internet of things completion -- (stm32f407 connects to cloud platform detection data)
windos 创建cordova 提示 因为在此系统上禁止运行脚本
R语言gt包和gtExtras包优雅地、漂亮地显示表格数据:nflreadr包以及gtExtras包的gt_plt_winloss函数可视化多个分组的输赢值以及内联图(inline plot)
Libuv Library - Design Overview (Chinese version)
今日睡眠质量记录77分
父亲和篮球
掌握Cypress命令行选项,是真正掌握Cypress的基础
TensorBoard可视化处理案例简析
(first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
Today's sleep quality record 77 points
Multi table query of MySQL - multi table relationship and related exercises
软件测试工作那么难找,只有外包offer,我该去么?
常见的几种最优化方法Matlab原理和深度分析
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?