using 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 void GetCamConfig(out CameraConfig config)
|
{
|
throw new NotImplementedException();
|
}
|
|
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 GetImage(out Bitmap bitmap, int outtime = 3000)
|
{
|
throw new NotImplementedException();
|
}
|
|
public override bool GetImageWithSoftTrigger(out Bitmap bitmap, int outtime = 3000)
|
{
|
throw new NotImplementedException();
|
}
|
|
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 void SetCamConfig(CameraConfig config)
|
{
|
throw new NotImplementedException();
|
}
|
|
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 StartWith_HardTriggerModel(TriggerSource hardtriggeritem = TriggerSource.Line0)
|
{
|
throw new NotImplementedException();
|
}
|
|
public override bool StartWith_SoftTriggerModel()
|
{
|
throw new NotImplementedException();
|
}
|
|
public override bool StopGrabbing()
|
{
|
return true;
|
}
|
}
|
}
|