当前位置:网站首页>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 :
边栏推荐
- 什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
- MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
- Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
- 第04章_逻辑架构
- 【日常训练】395. 至少有 K 个重复字符的最长子串
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
- Global and Chinese markets for flexible chips 2022-2028: Research Report on technology, participants, trends, market size and share
- Kubernetes advanced training camp pod Foundation
- Jvm-05-object, direct memory, string constant pool
- Solve the problem that pushgateway data will be overwritten by multiple push
猜你喜欢
Finally, someone explained the financial risk management clearly
Construction of operation and maintenance system
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Redis cache penetration, cache breakdown, cache avalanche solution
Popular understanding of gradient descent
[probably the most complete in Chinese] pushgateway entry notes
整形和浮点型是如何在内存中的存储
需要知道的字符串函数
随机推荐
Tensor ellipsis (three points) slice
Explanation of time complexity and space complexity
Atlas atlas torque gun USB communication tutorial based on mtcom
【pytorch学习笔记】Datasets and Dataloaders
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
视觉上位系统设计开发(halcon-winform)
[cloud native training camp] module VIII kubernetes life cycle management and service discovery
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Redis lock Optimization Practice issued by gaobingfa
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
[pytorch learning notes] transforms
运维体系的构建
Jvm-04-runtime data area heap, method area
SQL server installation location cannot be changed
Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
Summary of concurrent full knowledge points
[pytorch learning notes] datasets and dataloaders
Jvm-09 byte code introduction
Summary of JVM knowledge points
The first character of leetcode sword offer that only appears once (12)