提交代码
This commit is contained in:
@@ -3,19 +3,23 @@ using HardwareControl.Core.SampleAnalysis;
|
||||
namespace HardwareControl.Core.HardwareServiceImpl.HardwareService
|
||||
{
|
||||
/// <summary>
|
||||
/// 靶样轮廓与采样点分析服务:基准画面、靶样画面采集与分析。
|
||||
/// 靶样轮廓与采样点分析服务:抓取相机当前画面并分析。
|
||||
/// </summary>
|
||||
public interface ISampleAnalysisService
|
||||
{
|
||||
/// <summary>连续抓取多帧并取中值作为基准背景画面。</summary>
|
||||
Task<SampleBaselineInfo> CaptureBaselineAsync(CancellationToken ct = default);
|
||||
/// <summary>抓取相机当前画面,提取轮廓并生成采样点。</summary>
|
||||
SampleAnalysisResult Analyze();
|
||||
|
||||
/// <summary>
|
||||
/// 关闭红外测距光源后抓取当前最新画面作为靶样画面(需先采集基准画面)。
|
||||
/// 获取最近一次轮廓分析结果供扫描流程复用;
|
||||
/// 尚未分析过时立即执行一次分析。
|
||||
/// </summary>
|
||||
Task<SampleTargetInfo> CaptureTargetAsync(CancellationToken ct = default);
|
||||
SampleAnalysisResult GetLatestAnalysis();
|
||||
|
||||
/// <summary>基于基准画面和靶样画面提取轮廓并生成采样点。</summary>
|
||||
SampleAnalysisResult Analyze();
|
||||
/// <summary>
|
||||
/// 前端等待轮廓识别结果的超时时间(秒),
|
||||
/// 取自系统参数 camera_Identification_outtime。
|
||||
/// </summary>
|
||||
int GetIdentificationTimeoutSeconds();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user