轮胎外观检测添加思谋语义分割模型检测工具
C3204
5 小时以前 dc18021539bdf4ee176ec9d9b88eb7d9ad581600
LB_SmartVision/GlobalVar.cs
@@ -3,8 +3,11 @@
using LB_SmartVision.Forms.Pages.SettingPage;
using LB_SmartVision.ProcessRun;
using LB_SmartVision.Tool;
using LB_SmartVisionCameraDevice.PHM6000;
using LB_VisionProcesses.BarcodeReaders;
using LB_VisionProcesses.Cameras;
using LB_VisionProcesses.Communicators;
using LB_VisionProcesses.Communicators.SiemensS7;
using System.Collections.Concurrent;
namespace LB_SmartVision
@@ -25,15 +28,31 @@
            strStartTime = DateTime.Now.ToString("yyyyMMdd_HHmm");
        }
        /// <summary>
        /// 读码器集合(Key:设备SN,Value:读码器句柄)
        /// </summary>
        public static ObservableConcurrentDictionary<string, BarcodeReaderBase> dicBarcodeReaders { get; set; } = new ObservableConcurrentDictionary<string, BarcodeReaderBase>();
        /// <summary>
        /// 光源控制配置
        /// </summary>
        public static Dictionary<string, LEDControlParams> dicSerialPort { get; set; } = new Dictionary<string, LEDControlParams>();
        #region 读码器
        public static ConcurrentDictionary<string, string> allBarcodeReadersConnectionString = new ConcurrentDictionary<string, string>();
        public static string allBarcodeReadersConnectionStringPath
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\A_BarcodeReaderConnections.json";
        #endregion
        public static string AllSerialPortPath
        => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\A_SerialPort.json";
        /// <summary>
        /// 当前通讯
        /// </summary>
        public static string currentCommunicators { get; set; } = string.Empty;
        /// <summary>
        /// 流程集合(Key:流程名,Value:运行步骤集合)
        /// </summary>
@@ -56,18 +75,27 @@
        /// <summary>
        /// 运动控数据制集合 Key:产品名称,Value: SN,RecordMotionControlData
        /// 运动控数据制集合 Key:产品名称,Value: SN,PlcConfig
        /// </summary>
        public static Dictionary<string, Dictionary<string, PlcDataItem>> dicMPlcData { get; set; } = new Dictionary<string, Dictionary<string, PlcDataItem>>();
        public static Dictionary<string, Dictionary<string, PlcConfig>> dicMPlcData { get; set; } = new Dictionary<string, Dictionary<string, PlcConfig>>();
        public static string allMPlcDataPath
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\A_MPlcDatas.json";
        public static Dictionary<string, PlcConfig> allPlcSettings { get; set; } = new Dictionary<string, PlcConfig>();
        public static string allPlcSettingPath
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName /*+ "\\A_PlcSetting.json"*/;
        public static string allPlcSettingsPath
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\A_PlcSettings.json";
        /// <summary>
        /// 运动控数据制集合 Key:产品名称,Value: SN,RecordMotionControlData
        /// 运动控数据制集合 Key:产品名称,Value: SN,PlcConfig
        /// </summary>
        public static Dictionary<string, Dictionary<string, RecordMotionControlData>> dicMotionControlData { get; set; } = new Dictionary<string, Dictionary<string, RecordMotionControlData>>();
        public static Dictionary<string, Dictionary<string, PlcConfig>> dicMotionControlData { get; set; } = new Dictionary<string, Dictionary<string, PlcConfig>>();
        public static string allMotionControlDataPath
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\A_MotionControlDatas.json";
@@ -121,6 +149,13 @@
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\A_AllCsv.json";
        #endregion
        public static ConcurrentDictionary<string, PHM6000SensorConfig> allLBCameras = new ConcurrentDictionary<string, PHM6000SensorConfig>();
        public static string allCamerasLBPath
            => GlobalVar.strApplicationPath + "所有产品\\" + GlobalVar.strProductName + "\\LBCameraSetttings.json";
        /// <summary>
        /// 软件路径
        /// </summary>