当前位置:网站首页>halcon:读取摄像头并二值化
halcon:读取摄像头并二值化
2022-06-30 07:12:00 【老李的森林】
打开Halcon,点击摄像头图标,打开设置窗口,接口选择DirectShow
连接选项卡中点击“实时”按钮,可以在主界面中看到摄像头采集的画面
最后点代码生成按钮,采集单幅图像,异步,插入代码,即可看到主界面有代码生成
在图像窗口上点右键,工具,灰度直方图,打开直方图窗口
点RGB选择2号通道,也就是绿色通道,会变成单色显示
随便设置一个最小化的值,比如50,可以看到直方图上多出来一条绿色的竖线,点击下图的这个按钮
再拖动这条绿色的竖线,即可看到二值化分割的效果,绘画中选择Fill或Margin可以选择显示效果是填充还是边界
当然二值化前也可以做一些其他的处理,这是后面的话题了。
点击插入代码,即可将二值化的相关代码插入到程序窗口
按F5运行,效果如下
边栏推荐
- What if I forget my account number after opening an account? Is it safe to open an account online?
- Xshell传输文件
- Vs2019 and SQL
- Ad usage notes
- [implemented] server jar package startup script and shell script
- How to determine the size of the platform byte order?
- 元宇宙由哪些底层技术支撑?
- Detailed analysis of message signals occupying multiple bytes and bits
- Unity中实现溶解(Dissolve)特效及其原理解析
- [datawhale team learning] task02: mathematical operation, string and text, list
猜你喜欢
Pit stepping record: Supervisor log return information: redis extension is not installed
Traverse map
Go common commands
[resolved] MySQL exception: error 1045 (28000): unknown error 1045, forgetting the initial password
社招两年半10个公司28轮面试面经
六,购物⻋与订单
踩坑记录:supervisor 日志返回信息:redis扩展未安装
Steps for formulating class or file templates in idea
Skillfully use 5 keys to improve office efficiency
Realization of dissolve effect in unity and its principle analysis
随机推荐
How to set the hot deployment of idea web project
【我的OpenGL学习进阶之旅】关于OpenGL的着色器的向量和矩阵分类的访问方式: xyzw/rgba/stpq以及数组下标
Resolved: initialize specified but the data directory has files in it Aborting
Four great happenings on earth
Google Earth Engine(GEE)——墨累全球潮汐湿地变化 v1 (1999-2019) 数据集
网络安全-抓包和IP包头分析
B站首个UP主付费观看视频还是来了!价格“劝退”网友
Mysql5.7 compressed version installation tutorial
QT signal slot alarm QObject:: connect:cannot connect (null)
MySQL优化:从十几秒优化到三百毫秒
[implemented] server jar package startup script and shell script
First line of code (Third Edition) learning notes
Qtcreator debug code after configuring CDB debugger view variable value display card
Merge: extension click the El table table data to expand
Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/mysqld_safe)
The maximum expression in Oracle database message list is 1000 error
How to determine the size of the platform byte order?
app quits unexpectedly
【最全】linux服务器上安装Mysql
I graduated this year, but I don't know what I want to do