获取网络摄像头参数
# 获取网络摄像头参数
Path:
/api/cameraconfig.json
Method: GET
Content-type: application/json; charset=utf-8
接口描述: 获取网络摄像头的参数,图片相关参数,账号相关参数等。
返回数据
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
exposure | int | 10 | 曝光度,取值为-12~12,即摄像头的曝光度 |
whitebalance | String | "1" | 白平衡,"0"自动,"1"荧光,"3"白炽,"6"日光,"7"多云 |
size | String | "200*200" | 云相机拍摄的尺寸,格式为长*宽 |
interval | int | 5 | 摄像头图像的更新时间间隔,单位秒 |
auto_upload | int | 1 | 图片是否自动上报,1是,0否 |
quality | int | 80 | 图片的质量,取值0~100 |
ip | String | "192.168.1.83" | 网络摄像头的ip地址 |
username | String | "admin" | 网络摄像头的用户名 |
password | String | "123456" | 网络摄像头的密码 |
响应示例
{
"code":200,
"data":{
"auto_upload":1,
"exposure":10,
"interval":5,
"ip":"192.168.1.83",
"password":"qwe",
"quality":8,
"size":"200*200",
"username":"asd",
"whitebalance":"1"
},
"msg":"200 success"
}