当前位置:网站首页>Halcon and WinForm study section 2
Halcon and WinForm study section 2
2022-07-03 15:19:00 【11eleven】
be based on halconWindow Design process customization Visual inspection scheme system , First on the renderings
Mainly provide Here are a few big pieces :
One 、 Toolbar support
Two 、 The toolbar drawing process integration scheme can be imported and exported
3、 ... and 、 Input and output of the data flow of the tool process node
Four 、 Device communication
5、 ... and 、 Use of global variables
The interface above took two weeks to implement , If you have time later , Introduce paragraph by paragraph .
Scheme configuration runs through the whole business
public class SchemeConfig {
public static SchemeInfo Scheme { set; get; }
public static HWindow_Final HWindowControl { set; get; }
}
public class SchemeInfo : BaseField, IEntity<long>
{
public SchemeInfo()
{
Id = GeneratePrimaryKeyIdHelper.GetPrimaryKeyId();
}
public long Id { get; set; }
/// <summary>
/// Scheme code
/// </summary>
public string Code { get; set; }
/// <summary>
/// Program name
/// </summary>
public string Name { get; set; }
/// <summary>
/// remarks
/// </summary>
public string Remark { get; set; }
public List<SchemeFlowInfoEntity> FlowList { set; get; }
public List<GlobalVariableModel> GlobalVariableList { set; get; }
/// <summary>
/// Device configuration
/// </summary>
public GlobalDeviceConfig GlobalDeviceConfig { set; get; }
}
public class GlobalDeviceConfig
{
public List<DeviceCommumicationClient> ClientList { set; get; } = new List<DeviceCommumicationClient>();
public List<CommumicationEventReceive> ReceiveList { set; get; } = new List<CommumicationEventReceive>();
public List<CommumicationEventSend> SendList { set; get; } = new List<CommumicationEventSend>();
}
/// <summary>
/// Image source
/// </summary>
public class ImageSourceContentModel: SchemeFlowNodeEntity
{
public override void InitData() {
NodeResultModels = new List<NodeResultModel>();
NodeResultModels.Add(new NodeResultModel() { NodeResultCode = NodeResultTypeEnum.ImageWidth.ToString(),NodeResultName =NodeResultTypeEnum.ImageWidth.GetDescription() });
NodeResultModels.Add(new NodeResultModel() { NodeResultCode = NodeResultTypeEnum.ImageHeight.ToString(), NodeResultName = NodeResultTypeEnum.ImageHeight.GetDescription() });
}
public int DefaultImageIndex { set; get; } = -1;
public string ImageFolderPath { set; get; }
/// <summary>
/// Image address PATH
/// </summary>
public List<string> ImagePathList { set; get; }
}
/// <summary>
/// Geometry creation
/// </summary>
public class GeometryContentModel : SchemeFlowNodeEntity
{
/// <summary>
/// ROIJSON
/// </summary>
public string RoiDataJson { set; get; }
/// <summary>
/// ROI The geometric
/// </summary>
public List<ROI> Regions { set; get; } = new List<ROI>();//roi aggregate
}
/// <summary>
/// blob
/// </summary>
public class BlobContentModel : SchemeFlowNodeEntity
{
}
/// <summary>
/// Color conversion
/// </summary>
public class ColorRgbContentModel : SchemeFlowNodeEntity
{
}
/// <summary>
/// Result
/// </summary>
public class ConditionResultContentModel : SchemeFlowNodeEntity
{
/// <summary>
/// Judge the condition 0: All in line ,1: Any condition meets
/// </summary>
public int JudgeType { set; get; }
public List<ResultConditionJudgeModel> JudgeList { set; get; } = new List<ResultConditionJudgeModel>();
public Color OkColor { set; get; }
public Color NgColor { set; get; }
public int ResultLocationX { set; get; }
public int ResultLocationY { set; get; }
}
public class ResultConditionJudgeModel {
public string VariableCode { set; get; }
public string VariableName { set; get; }
public decimal MinValue { set; get; }
public decimal MaxValue { set; get; }
}
/// <summary>
/// Tool node type
/// </summary>
public enum ToolNodeTypeEnum:long
{
/// <summary>
/// Image source
/// </summary>
ImageSource=0,
/// <summary>
/// The geometric
/// </summary>
Geometry=1,
/// <summary>
/// blob analysis
/// </summary>
Blob=2,
/// <summary>
/// Conditional results
/// </summary>
ConditionResult=3,
/// <summary>
/// Color conversion
/// </summary>
ColorRgb=4,
}
边栏推荐
- Halcon与Winform学习第一节
- mysql innodb 存储引擎的特性—行锁剖析
- 求字符串函数和长度不受限制的字符串函数的详解
- What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
- Tensorflow realizes verification code recognition (I)
- Kubernetes带你从头到尾捋一遍
- "Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
- What is label encoding? How to distinguish and use one hot encoding and label encoding?
- Influxdb2 sources add data sources
- redis单线程问题强制梳理门外汉扫盲
猜你喜欢
Chapter 04_ Logical architecture
Yolov5 series (I) -- network visualization tool netron
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
求字符串函数和长度不受限制的字符串函数的详解
Jvm-08-garbage collector
Redis cache penetration, cache breakdown, cache avalanche solution
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Kubernetes帶你從頭到尾捋一遍
随机推荐
Kubernetes vous emmène du début à la fin
Kubernetes 进阶训练营 Pod基础
Zero copy underlying analysis
【可能是全中文网最全】pushgateway入门笔记
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Leetcode sword offer find the number I (nine) in the sorted array
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
视觉上位系统设计开发(halcon-winform)-3.图像控件
redis单线程问题强制梳理门外汉扫盲
mysql innodb 存储引擎的特性—行锁剖析
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
Global and Chinese markets of AC electromechanical relays 2022-2028: Research Report on technology, participants, trends, market size and share
Redis cache penetration, cache breakdown, cache avalanche solution
Introduction, use and principle of synchronized
Explanation of time complexity and space complexity
Basic SQL tutorial
Final review points of human-computer interaction
Yolov5 advanced seven target tracking latest environment construction (II)