From cb61a204c29e9b14d0b3f4e677d8489fc40cba51 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期三, 24 十二月 2025 11:20:33 +0800
Subject: [PATCH] 增加多流程JSON保存以及加载。
---
LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs | 134 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 134 insertions(+), 0 deletions(-)
diff --git a/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs b/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs
new file mode 100644
index 0000000..2bdc26b
--- /dev/null
+++ b/LB_VisionProcesses/Cameras/LBCameras/LBCamera.cs
@@ -0,0 +1,134 @@
+锘縰sing OpenCvSharp;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LB_VisionProcesses.Cameras.LBCameras
+{
+ /// <summary>
+ /// LB3D宸ヤ笟鐩告満瀹炵幇绫�
+ /// 鍩轰簬PHM6000绯诲垪灏佽
+ /// </summary>
+ internal class LBCamera : BaseCamera
+ {
+ public override bool AutoBalanceWhite()
+ {
+ return true;
+ }
+
+ public override bool CloseDevice()
+ {
+ return true;
+ }
+
+ public override bool GetExpouseTime(out double value)
+ {
+ value = 0;
+ return true;
+ }
+
+ public override bool GetGain(out double gain)
+ {
+ gain = 0;
+ return true;
+ }
+
+ public override bool GetLineStatus(IOLines line, out LineStatus lineStatus)
+ {
+ lineStatus = LineStatus.Hight;
+ return true;
+ }
+
+ public override List<string> GetListEnum()
+ {
+ return new List<string>();
+ }
+
+ public override bool GetTriggerDelay(out double delay)
+ {
+ delay = 0;
+ return true;
+ }
+
+ public override bool GetTriggerFliter(out double flitertime)
+ {
+ flitertime = 0;
+ return true;
+ }
+
+ public override bool GetTriggerMode(out TriggerMode mode, out TriggerSource source)
+ {
+ mode = TriggerMode.On;
+ source = TriggerSource.Line0;
+ return true;
+ }
+
+ public override bool GetTriggerPolarity(out TriggerPolarity polarity)
+ {
+ polarity = TriggerPolarity.RisingEdge;
+ return true;
+ }
+
+ public override bool InitDevice(string SN, object Handle = null)
+ {
+ return true;
+ }
+
+ public override bool SetExpouseTime(double value)
+ {
+ return true;
+ }
+
+ public override bool SetGain(double gain)
+ {
+ return true;
+ }
+
+ public override bool SetLineMode(IOLines line, LineMode mode)
+ {
+ return true;
+ }
+
+ public override bool SetLineStatus(IOLines line, LineStatus linestatus)
+ {
+ return true;
+ }
+
+ public override bool SetTriggerDelay(double delay)
+ {
+ return true;
+ }
+
+ public override bool SetTriggerFliter(double flitertime)
+ {
+ return true;
+ }
+
+ public override bool SetTriggerMode(TriggerMode mode, TriggerSource triggerEnum = TriggerSource.Line0)
+ {
+ return true;
+ }
+
+ public override bool SetTriggerPolarity(TriggerPolarity polarity)
+ {
+ return true;
+ }
+
+ public override bool SoftTrigger()
+ {
+ return true;
+ }
+
+ public override bool StartGrabbing()
+ {
+ return true;
+ }
+
+ public override bool StopGrabbing()
+ {
+ return true;
+ }
+ }
+}
--
Gitblit v1.9.3