探测器XP.Hardware.Detector类库为了更好集成新的探测器,统一接口方法,DetectorService重构为通过统一接口;

新增暗场校正和亮场校正帧数配置属性(默认 64,范围 1-128),config 加载校正帧数;
修正探测器IsConnected连接状态的判断逻辑。
This commit is contained in:
QI Mingxuan
2026-05-21 13:19:30 +08:00
parent 119d03a02b
commit 2d7cf17a3b
12 changed files with 333 additions and 69 deletions
@@ -34,6 +34,16 @@ namespace XP.Hardware.Detector.Config
/// </summary>
public bool AutoSave { get; set; }
/// <summary>
/// 暗场校正帧数(1-128,默认 64| Dark correction frame count (1-128, default 64)
/// </summary>
public int DarkCorrectionFrameCount { get; set; } = 64;
/// <summary>
/// 亮场校正帧数(1-128,默认 64| Gain correction frame count (1-128, default 64)
/// </summary>
public int GainCorrectionFrameCount { get; set; } = 64;
/// <summary>
/// 获取支持的 Binning 选项(显示名称 → 索引)| Get supported binning options (display name → index)
/// 子类可重写以提供不同的选项列表