From 76a9e50ea64c80bffcb42efbb4d178d13b09c70b Mon Sep 17 00:00:00 2001 From: tfarcraw <123211521@163.com> Date: Thu, 16 Jul 2026 01:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E8=A7=89=E5=8A=9F=E8=83=BD=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E8=BE=93=E5=87=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PLCSharpWpf/VVMs/Vision/VisionFunction.cs | 47 +++++++++++++++++++++-- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/PLCSharpWpf/VVMs/Vision/VisionFunction.cs b/PLCSharpWpf/VVMs/Vision/VisionFunction.cs index ff21069..527e303 100644 --- a/PLCSharpWpf/VVMs/Vision/VisionFunction.cs +++ b/PLCSharpWpf/VVMs/Vision/VisionFunction.cs @@ -1,4 +1,5 @@ -using Newtonsoft.Json; +using Microsoft.AspNetCore.Http; +using Newtonsoft.Json; using OpenCvSharp; using PLCSharp.Core.Common; using PLCSharp.Core.Prism; @@ -16,7 +17,7 @@ using System.Windows.Media; namespace PLCSharp.VVMs.Vision { - /// + /// /// 视觉功能的执行单元,包含流程步骤列表(VisionFlows)、参数集合(Params)和运行时图像缓存 /// @@ -27,6 +28,7 @@ namespace PLCSharp.VVMs.Vision /// [Key] public Guid ID { get; set; } = Guid.NewGuid(); + /// /// 配方标识 /// @@ -65,7 +67,6 @@ namespace PLCSharp.VVMs.Vision /// 备注 /// public string Comment - { get { return _Comment; } set @@ -89,9 +90,47 @@ namespace PLCSharp.VVMs.Vision set { SetProperty(ref _ControlName, value); } } #region 结果 + [NotMapped] + public Pos ResultPos { get; set; } = new(); - public Pos Pos { get; set; } + [NotMapped] + public Rect ResultRect { get; set; } = new(); + [NotMapped] + public Circle ResultCircle { get; set; } = new(); + + [NotMapped] + public Line ResultLine { get; set; } = new(); + + [NotMapped] + public Barcode ResultBarcode { get; set; } = new(); + + [NotMapped] + public double ResultDouble { get; set; } + + [NotMapped] + public string RusultString { get; set; } + + [NotMapped] + public List ResultPosList { get; set; } = []; + + [NotMapped] + public List ResultRectList { get; set; } = []; + + [NotMapped] + public List ResultCircleList { get; set; } = []; + + [NotMapped] + public List ResultLineList { get; set; } = []; + + [NotMapped] + public List ResultBarcodeList { get; set; } = []; + + [NotMapped] + public List ResultDoubleList { get; set; } = []; + + [NotMapped] + public List RusultStringList { get; set; } = []; #endregion