当前位置:网站首页>Visual upper system design and development (Halcon WinForm) -6 Nodes and grids
Visual upper system design and development (Halcon WinForm) -6 Nodes and grids
2022-07-03 15:19:00 【11eleven】
This article will introduce the design of node operation and multi grid preview .
1. take halcon Some operators of are encapsulated into corresponding tool nodes , for example , Image reading , Color conversion , Template matching creation and so on , Provide input setting parameters , Output the execution result after execution , Generally, the output result of the previous node is part of the input parameters of the next node .
For example, the input parameter of the image source node is the image address , Or camera stream , The output is image and grayscale , And picture size .
The input of the color conversion node is the original image , The output is a multi-channel image .
The input of template matching is template outline and image , The output is the matching number and score of the image .
Define the operation parameters of the node , Input parameters , Output results , In this way, when the nodes in series are processed circularly, the input and output can be defined according to the needs of the nodes .
2. In general visual projects, it is common for multiple cameras to detect different parts of the scene , Therefore, in the process of debugging and running, you will need to display images in multiple grids , Choose the grid according to the customized number or the number of cameras . Here we use winform Medium TableLayoutPanel Perform automatic division and equal division . According to the setting of rows and columns table Row and column addition of , Finally, fill the image control of the node into table in
private void SetTableCell(int rows,int columns) {
TablePanel.Controls.Clear();
TablePanel.RowStyles.Clear();
TablePanel.ColumnStyles.Clear();
TablePanel.RowCount = rows;
for (int i = 0; i < rows; i++)
{
TablePanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
}
TablePanel.ColumnCount = columns;
for (int i = 0; i < columns; i++) {
TablePanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
}
}
The renderings are as follows :
边栏推荐
- SQL server安装位置改不了
- Introduction, use and principle of synchronized
- "Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
- [cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
- Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- SQL server installation location cannot be changed
- Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
- Using Tengine to solve the session problem of load balancing
- Puppet自动化运维排错案例
- 【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
猜你喜欢
Reentrantlock usage and source code analysis
Kubernetes advanced training camp pod Foundation
Jvm-06-execution engine
需要知道的字符串函数
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
[pytorch learning notes] datasets and dataloaders
[probably the most complete in Chinese] pushgateway entry notes
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
基础SQL教程
Popular understanding of gradient descent
随机推荐
Use of Tex editor
Tensor ellipsis (three points) slice
Kubernetes帶你從頭到尾捋一遍
Visual upper system design and development (Halcon WinForm) -1 Process node design
Redis cache penetration, cache breakdown, cache avalanche solution
Jvm-05-object, direct memory, string constant pool
Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
Redis single thread problem forced sorting layman literacy
el-switch 赋值后状态不变化
Kubernetes - YAML文件解读
开启 Chrome 和 Edge 浏览器多线程下载
qt使用QZxing生成二维码
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
视觉上位系统设计开发(halcon-winform)
redis缓存穿透,缓存击穿,缓存雪崩解决方案
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
Leetcode sword offer find the number I (nine) in the sorted array
Kubernetes will show you from beginning to end
Tensorflow realizes verification code recognition (I)
Introduction to redis master-slave, sentinel and cluster mode