当前位置:网站首页>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
边栏推荐
- TensorBoard可视化处理案例简析
- User and group command exercises
- RichView TRVStyle ListStyle 列表样式(项目符号编号)
- (first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
- Multi table query of MySQL - multi table relationship and related exercises
- JSP and filter
- ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
- Mysql database basic operation - regular expression
- 双向链表(我们只需要关注插入和删除函数)
- 道路建设问题
猜你喜欢
106. 如何提高 SAP UI5 应用路由 url 的可读性
Road construction issues
Flutter动态化 | Fair 2.5.0 新版本特性
Internet of things completion -- (stm32f407 connects to cloud platform detection data)
道路建设问题
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
挡不住了,国产芯片再度突进,部分环节已进到4nm
物联网毕设 --(STM32f407连接云平台检测数据)
Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
Libuv Library - Design Overview (Chinese version)
随机推荐
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
Red hat satellite 6: better management of servers and clouds
RichView TRVStyle ListStyle 列表样式(项目符号编号)
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
The principle of human voice transformer
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
道路建设问题
The shadow of the object at the edge of the untiy world flickers, and the shadow of the object near the far point is normal
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
MySQL
Kivy tutorial how to automatically load kV files
MySQL installation, uninstallation, initial password setting and general commands of Linux
Leetcode-1175.Prime Arrangements
Static linked list (subscript of array instead of pointer)
106. 如何提高 SAP UI5 应用路由 url 的可读性
Today's sleep quality record 77 points
SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
Red Hat Satellite 6:更好地管理服务器和云
SQL Injection (POST/Search)