SDK Windows WebCamera

获取硬件(摄像头)属性


请求说明: 获取硬件(摄像头)属性

请求地址: http://127.0.0.1:38088/device=getdeviceattribute

请求方式: POST

请求参数:

{
    "canidx": "0",  // 摄像头,0:主头;1:副头
    "mode": "1",    // 0:VideoProc数据;1:CameraControl数据
    "prop": "1",    
    "value": "1"
    /**
    * 当mode=0
    * prop:0x1:亮度; 0x2:对比度;0x3:饱和度;0x4:色调;0x5:清晰度;0x6:伽马;0x7:白平衡;0x8:逆光对比;0x9:启用颜色;0xA:增益
    * value: 0x1:最小值;0x2:最大值;0x3:步长;0x4:默认值;0x5:实际值;0x6:是否自动设置
    *
    * 当mode=1
    * prop: 0x1:曝光;0x2:全景;0x3:倾斜;0x4:滚动;0x5:缩放;0x6:光圈;0x7:焦点
    * value: 0x1:最小值;0x2:最大值;0x3:步长;0x4:默认值;0x5:实际值;0x6:是否自动设置
    */
}

返回结果:

{
    "code": "0",
    "message": "ok",
    "data": "-13"
}