3D放大
POST
https://api2.hik-cloud.com/api/v1/open/basic/channels/actions/ptz/position3d
坐标单位为相对比例值,例如视频画面分辨率为1920 * 1080,则
startPointX=(鼠标当前所选区域的起始点X坐标像素值 /1920) x 255
startPointY=(鼠标当前所选区域的起始点Y坐标像素值 /1080) x 255
endPointX=(鼠标当前所选区域的结束点X坐标像素值 /1920) x 255
endPointY=(鼠标当前所选区域的结束点Y坐标像素值 /1080) x 255
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/open/basic/channels/actions/ptz/position3d' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "D62158364",
"channelNo": 1,
"endPointX": 0,
"endPointY": 0,
"startPointX": 0,
"startPointY": 0
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功"
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-20 08:20:17