当前位置:网站首页>【Halcon视觉】软件编程思路
【Halcon视觉】软件编程思路
2022-07-26 10:16:00 【文布斯】
视觉软件编程思路
- 图像预处理:图像去噪,图像腐蚀,图像膨胀,开闭运算,形态学处理等。
- 图像感兴趣区域分割:使用阈值分割,将感兴趣区域分割出来。
- 图像区域筛选:在分割的区域图像中,根据特征,筛选出我们需要的区域。这些特征包括长度,宽度,面积等。
- 特征分析:在筛选出来的区域图像中,对它进行定量分析,包括拟合圆,拟合直线等。
- 目标信息提取:获取目标信息,如尺寸值,坐标值等。
*获取铝片区域案例
*读图
read_image (Image, 'printer_chip/printer_chip_01')
*阈值分割
threshold (Image, Regions, 171, 253)
*填充空洞
fill_up (Regions, RegionFillUp)
*连通域
connection (RegionFillUp, ConnectedRegions)
*选择区域
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 27000, 30000)
*清理窗口
dev_clear_window ()
*显示铝片区域
dev_display (SelectedRegions)
边栏推荐
- Replay the snake game with C language (II) end
- 详细解析js中的混合方式构造对象(构造加属性,原型加方法)
- 如何写一篇百万阅读量的文章
- Learning about tensorflow (II)
- Study notes of the second week of sophomore year
- 数通基础-STP原理
- Network related journals and conferences in CS
- Opencv image processing
- Employee information management system based on Web
- SQL Server 2008 R2 installation problems
猜你喜欢
Learning about opencv (2)
Common errors when starting projects in uniapp ---appid
Wechat applet learning notes 1
万字详解“用知识图谱驱动企业业绩增长”
Draw arrows with openlayer
Flask框架初学-03-模板
I finished watching this video on my knees at station B
Server memory failure prediction can actually do this!
服务发现原理分析与源码解读
Vs Code configures go locale and successfully installs go related plug-ins in vscode problem: Tools failed to install
随机推荐
利用原生js实现自定义滚动条(可点击到达,拖动到达)
输入整数后输入整行字符串的解决方法
Flask framework beginner-03-template
面试突击68:为什么 TCP 需要 3 次握手?
Like, "new programmer" e-book is free for a limited time!
Sublime install plug-ins
Tower of Hanoi II | tower of Hanoi 4 columns
Data communication foundation STP principle
Explain automatic packing and unpacking?
Solve proxyerror: CONDA cannot proceed due to an error in your proxy configuration
服务器内存故障预测居然可以这样做!
Beginner of flask framework-04-flask blueprint and code separation
Uniapp "no mobile phone or simulator detected, please try again later" and uniapp custom components and communication
The problem of incomplete or partial display of the last recyclerview is solved
regular expression
Some descriptions of DS V2 push down in spark
在.NET 6.0中配置WebHostBuilder
Wu Enda linear regression of machine learning
Yarn 'TSC' is not an internal or external command, nor is it a runnable program or batch file. The problem that the command cannot be found after installing the global package
Study on the basis of opencv