50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
using MainShell.Common;
|
|
|
|
namespace MainShell.Vision
|
|
{
|
|
/// <summary>
|
|
/// 中心识别请求。
|
|
/// </summary>
|
|
public class FindCenterRequest
|
|
{
|
|
private CameraCaptureOptions _captureOptions;
|
|
|
|
public FindCenterRequest()
|
|
{
|
|
_captureOptions = new CameraCaptureOptions();
|
|
TimeoutMilliseconds = 3000;
|
|
Parameters = new FindCenterParameters();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 相机来源。
|
|
/// </summary>
|
|
public CameraType CameraSource { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采图选项。
|
|
/// </summary>
|
|
public CameraCaptureOptions CaptureOptions
|
|
{
|
|
get
|
|
{
|
|
return _captureOptions;
|
|
}
|
|
set
|
|
{
|
|
_captureOptions = value ?? new CameraCaptureOptions();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 算法超时时间(毫秒)。
|
|
/// </summary>
|
|
public int TimeoutMilliseconds { get; set; }
|
|
|
|
/// <summary>
|
|
/// 中心识别参数。
|
|
/// </summary>
|
|
public FindCenterParameters Parameters { get; set; }
|
|
}
|
|
}
|