当前位置:网站首页>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 :

边栏推荐
- Redis lock Optimization Practice issued by gaobingfa
- Yolov5系列(一)——網絡可視化工具netron
- leetcode_ Power of Four
- Influxdb2 sources add data sources
- Stress test WebService with JMeter
- 使用Tengine解决负载均衡的Session问题
- Popular understanding of gradient descent
- Yolov5 advanced 8 format conversion between high and low versions
- 阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
- Nppexec get process return code
猜你喜欢

Introduction, use and principle of synchronized

视觉上位系统设计开发(halcon-winform)-1.流程节点设计

Halcon与Winform学习第二节
![[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller](/img/a4/2156b61fbf50db65fdf59c8f5538f8.png)
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller

Solve the problem that pushgateway data will be overwritten by multiple push

Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"

Summary of concurrent full knowledge points

Finally, someone explained the financial risk management clearly

第04章_逻辑架构

Remote server background hangs nohup
随机推荐
Yolov5 series (I) -- network visualization tool netron
运维体系的构建
Tensorflow realizes verification code recognition (I)
【日常训练】395. 至少有 K 个重复字符的最长子串
Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
Search in the two-dimensional array of leetcode sword offer (10)
Mmdetection learning rate and batch_ Size relationship
求字符串函数和长度不受限制的字符串函数的详解
使用JMeter对WebService进行压力测试
Functional modules and application scenarios covered by the productization of user portraits
Summary of JVM knowledge points
Analysis of development mode process based on SVN branch
Yolov5系列(一)——網絡可視化工具netron
Influxdb2 sources add data sources
Jvm-06-execution engine
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
QT common sentence notes
Qt常用语句备忘