CameraChange 相机-设备切换
POST
/rpc/camera/change
相机管理
1.任意激活状态可调用
请求参数
Body 参数application/json
id
string
要使用的相机ID【必填】
resolutionInfo
object (CameraResolutionInfo 相机分辨率信息)
必需
width
integer <int64>
图像宽度(像素)
height
integer <int64>
图像高度(像素)
fps
integer <int64>
图像帧率(张/秒)
format
string
图像帧格式,支持版本:[v1.5.3.0+]
示例
{
"id": "string",
"resolutionInfo": {
"width": 0,
"height": 0,
"fps": 0,
"format": "string"
}
}
返回响应
🟢200成功
application/json
Body
code
enum<integer> <int32>
必需
枚举值:
0110001001100210031004100510061007150015011503150420002500
默认值:
0
msg
string
状态描述
示例
{
"code": 0,
"msg": "string"
}