50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
|
|
using MainShell.Common;
|
||
|
|
|
||
|
|
namespace MainShell.Vision
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Die 定位请求。
|
||
|
|
/// </summary>
|
||
|
|
public class FindDieRequest
|
||
|
|
{
|
||
|
|
private CameraCaptureOptions _captureOptions;
|
||
|
|
|
||
|
|
public FindDieRequest()
|
||
|
|
{
|
||
|
|
_captureOptions = new CameraCaptureOptions();
|
||
|
|
TimeoutMilliseconds = 3000;
|
||
|
|
Parameters = new FindDieParameters();
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <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>
|
||
|
|
/// Die 定位参数。
|
||
|
|
/// </summary>
|
||
|
|
public FindDieParameters Parameters { get; set; }
|
||
|
|
}
|
||
|
|
}
|