25 lines
778 B
C#
25 lines
778 B
C#
namespace HardwareControl.Core.UsbCamera
|
|
{
|
|
/// <summary>
|
|
/// Usb相机操作类
|
|
/// </summary>
|
|
public class UsbCameraOptions
|
|
{
|
|
// 设备名称关键词,null 表示取第一个设备
|
|
public string? DeviceNameKeyword { get; set; }
|
|
|
|
// 优先使用的格式关键词,例如 "MJPG" 或 "640x480"
|
|
// 为 null 时取该设备的第一个格式
|
|
public string? PreferredFormatKeyword { get; set; }
|
|
|
|
// 重连基础间隔,单位毫秒
|
|
public int ReconnectBaseDelayMs { get; set; } = 1000;
|
|
|
|
// 重连最大间隔,单位毫秒
|
|
public int ReconnectMaxDelayMs { get; set; } = 10_000;
|
|
|
|
// 抓帧超时,单位毫秒
|
|
public int FrameTimeoutMs { get; set; } = 5000;
|
|
}
|
|
}
|