using MainShell.Common;
namespace MainShell.Vision
{
///
/// 模板匹配请求。
///
public class FindTemplateRequest
{
private CameraCaptureOptions _captureOptions;
public FindTemplateRequest()
{
_captureOptions = new CameraCaptureOptions();
TimeoutMilliseconds = 3000;
Parameters = new FindTemplateParameters();
}
///
/// 相机来源。
///
public CameraType CameraSource { get; set; }
///
/// 采图选项。
///
public CameraCaptureOptions CaptureOptions
{
get
{
return _captureOptions;
}
set
{
_captureOptions = value ?? new CameraCaptureOptions();
}
}
///
/// 算法超时时间(毫秒)。
///
public int TimeoutMilliseconds { get; set; }
///
/// 模板匹配参数。
///
public FindTemplateParameters Parameters { get; set; }
}
}