当前位置:网站首页>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 :
边栏推荐
- Introduction, use and principle of synchronized
- Search in the two-dimensional array of leetcode sword offer (10)
- 运维体系的构建
- 【可能是全中文网最全】pushgateway入门笔记
- Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
- High quality workplace human beings must use software to recommend, and you certainly don't know the last one
- redis缓存穿透,缓存击穿,缓存雪崩解决方案
- Can‘t connect to MySQL server on ‘localhost‘
- socket.io搭建分布式Web推送服务器
- 基于SVN分支开发模式流程浅析
猜你喜欢
第04章_逻辑架构
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
Incluxdb2 buckets create database
Jvm-05-object, direct memory, string constant pool
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
Popular understanding of gradient descent
[pytorch learning notes] datasets and dataloaders
解决pushgateway数据多次推送会覆盖的问题
百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
随机推荐
Unity hierarchical bounding box AABB tree
Halcon与Winform学习第二节
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
Nppexec get process return code
Jvm-05-object, direct memory, string constant pool
socket. IO build distributed web push server
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
Basic SQL tutorial
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
[pytorch learning notes] transforms
Kubernetes vous emmène du début à la fin
Influxdb2 sources add data sources
Final review points of human-computer interaction
Didi off the shelf! Data security is national security
开启 Chrome 和 Edge 浏览器多线程下载
The method of parameter estimation of user-defined function in MATLAB
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
Matlab r2011b neural network toolbox precautions
The markdown file obtains the pictures of the network and stores them locally and modifies the URL