1. 配置客流量统计数据重置

1.1 命令

PUT /ISAPI/System/Video/inputs/channels/<channelID>/counting/resetCount

1.2 输入参数

1.3 输出参数

<?xml version="1.0" encoding="UTF-8"?>

<ResponseStatus xmlns="http://www.isapi.org/ver20/XMLSchema" version="2.0">
  <!--ro, req, object, 响应消息, attr:version{ro, req, string, 版本, range:[,]}-->
  <requestURL>
    <!--ro, req, string, 请求的URL, range:[,]-->null
  </requestURL>
  <statusCode>
    <!--ro, req, enum, 状态码, subType:int, [0#OK,1#OK,2#Device Busy,3#Device Error,4#Invalid Operation,5#Invalid XML Format,6#Invalid XML Content,7#Reboot Required]-->0
  </statusCode>
  <statusString>
    <!--ro, req, enum, 状态信息, subType:string, [OK#成功,Device Busy#设备忙,Device Error#设备异常,Invalid Operation#无效的操作,Invalid XML Format#无效的XML格式,Invalid XML Content#无效的XML内容,Reboot#设备重启]-->OK
  </statusString>
  <subStatusCode>
    <!--ro, req, string, 详细错误码英文描述, range:[,], desc:详细错误码的英文描述-->OK
  </subStatusCode>
</ResponseStatus>

2. 配置移除Flash存储客流量统计数据

2.1 命令

PUT /ISAPI/ContentMgmt/FlashStorage/remove/channels/<channelID>

2.2 输入参数

<?xml version="1.0" encoding="UTF-8"?>

<FlashStorageRemove xmlns="http://www.isapi.org/ver20/XMLSchema" version="2.0">
  <!--req, object, 移除Flash存储客流量统计数据, attr:version{opt, string, 未定义, range:[,]}-->
  <coutingRemove>
    <!--opt, bool, 人数统计清除-->true
  </coutingRemove>
</FlashStorageRemove>

2.3 输出参数

<?xml version="1.0" encoding="UTF-8"?>

<ResponseStatus xmlns="http://www.isapi.org/ver20/XMLSchema" version="2.0">
  <!--ro, req, object, 响应消息, attr:version{ro, req, string, 版本, range:[,]}-->
  <requestURL>
    <!--ro, req, string, 请求的URL, range:[,]-->null
  </requestURL>
  <statusCode>
    <!--ro, req, enum, 状态码, subType:int, [0#OK,1#OK,2#Device Busy,3#Device Error,4#Invalid Operation,5#Invalid XML Format,6#Invalid XML Content,7#Reboot Required]-->0
  </statusCode>
  <statusString>
    <!--ro, req, enum, 状态信息, subType:string, [OK#成功,Device Busy#设备忙,Device Error#设备异常,Invalid Operation#无效的操作,Invalid XML Format#无效的XML格式,Invalid XML Content#无效的XML内容,Reboot#设备重启]-->OK
  </statusString>
  <subStatusCode>
    <!--ro, req, string, 详细错误码英文描述, range:[,], desc:详细错误码的英文描述-->OK
  </subStatusCode>
</ResponseStatus>

3. 获取客流量统计推荐肩宽

3.1 命令

GET /ISAPI/System/Video/inputs/channels/<channelID>/counting/RecommendValue

3.2 输入参数

3.3 输出参数

<?xml version="1.0" encoding="UTF-8"?>

<CountingRecommendValue xmlns="http://www.isapi.org/ver20/XMLSchema" version="2.0">
  <!--ro, opt, object, 获取客流量统计推荐肩宽, attr:version{opt, string, 版本, range:[,]}-->
  <width>
    <!--ro, opt, int, 肩宽, range:[,], step:, unit:, unitType:-->1
  </width>
</CountingRecommendValue>

4. 获取客流量统计运行状态

4.1 命令

GET /ISAPI/System/Video/inputs/channels/<channelID>/counting/status

4.2 输入参数

4.3 输出参数

<?xml version="1.0" encoding="UTF-8"?>

<CountingStatus xmlns="http://www.isapi.org/ver20/XMLSchema" version="2.0">
  <!--ro, opt, object, 获取客流量统计运行状态, attr:version{req, string, 未定义, range:[,]}-->
  <status>
    <!--ro, req, enum, 状态, subType:string, [counting#统计,stopped#停止,paused#暂停]-->counting
  </status>
  <time>
    <!--ro, req, time, 返回设备操作的时间(本地时间+时区)-->22:00:00+08:00
  </time>
  <doorStatus>
    <!--ro, opt, enum, 公交车门触发状态, subType:string, [open#开,close#关,N_A#N_A]-->open
  </doorStatus>
</CountingStatus>

5. 获取客流统计事件屏蔽区域

5.1 命令

GET /ISAPI/Intelligent/channels/<channelID>/Shield/peopleCounting

5.2 输入参数

5.3 输出参数

<?xml version="1.0" encoding="UTF-8"?>

<Shield xmlns="http://www.isapi.org/ver20/XMLSchema" version="1.0">
  <!--ro, req, object, 屏蔽区域配置, attr:version{req, string, 协议版本, range:[,]}-->
  <enabled>
    <!--ro, req, enum, 使能, subType:string, [true#是,false#否]-->true
  </enabled>
  <RegionList>
    <!--ro, opt, array, 屏蔽区域列表, subType:object, range:[,]-->
    <Region>
      <!--ro, opt, object, 屏蔽区域-->
      <id>
        <!--ro, req, string, 区域索引, range:[,]-->1
      </id>
      <enabled>
        <!--ro, req, enum, 使能, subType:string, [true#是,false#否]-->true
      </enabled>
      <RegionCoordinatesList>
        <!--ro, opt, array, 区域坐标列表, subType:object, range:[3,10]-->
        <RegionCoordinates>
          <!--ro, req, object, 区域坐标, desc:屏幕左下角为坐标原点-->
          <positionX>
            <!--ro, req, int, x坐标, range:[0,1000], step:, unit:, unitType:, desc:最小值为0,最大值参考能力集/ISAPI/Intelligent/channels/<channelID>/Shield/capabilities中的normalizedScreenWidth-->1
          </positionX>
          <positionY>
            <!--ro, req, int, y坐标, range:[0,1000], step:, unit:, unitType:, desc:最小值为0,最大值参考能力集/ISAPI/Intelligent/channels/<channelID>/Shield/capabilities中的normalizedScreenHeight-->1
          </positionY>
        </RegionCoordinates>
      </RegionCoordinatesList>
    </Region>
  </RegionList>
</Shield>

6. 配置客流统计事件屏蔽区域

6.1 命令

PUT /ISAPI/Intelligent/channels/<channelID>/Shield/peopleCounting

6.2 输入参数

<?xml version="1.0" encoding="UTF-8"?>

<Shield xmlns="http://www.isapi.org/ver20/XMLSchema" version="1.0">
  <!--req, object, 屏蔽区域配置, attr:version{req, string, 协议版本, range:[,]}-->
  <enabled>
    <!--req, enum, 使能, subType:string, [true#是,false#否]-->true
  </enabled>
  <RegionList>
    <!--opt, array, 屏蔽区域列表, subType:object, range:[,]-->
    <Region>
      <!--opt, object, 屏蔽区域-->
      <id>
        <!--req, string, 区域索引, range:[,]-->1
      </id>
      <enabled>
        <!--req, enum, 使能, subType:string, [true#是,false#否]-->true
      </enabled>
      <RegionCoordinatesList>
        <!--opt, array, 区域坐标列表, subType:object, range:[3,10]-->
        <RegionCoordinates>
          <!--req, object, 区域坐标, desc:屏幕左下角为坐标原点-->
          <positionX>
            <!--req, int, x坐标, range:[0,1000], step:, unit:, unitType:, desc:最小值为0,最大值参考能力集/ISAPI/Intelligent/channels/<channelID>/Shield/capabilities中的normalizedScreenWidth-->1
          </positionX>
          <positionY>
            <!--req, int, y坐标, range:[0,1000], step:, unit:, unitType:, desc:最小值为0,最大值参考能力集/ISAPI/Intelligent/channels/<channelID>/Shield/capabilities中的normalizedScreenHeight-->1
          </positionY>
        </RegionCoordinates>
      </RegionCoordinatesList>
    </Region>
  </RegionList>
</Shield>

6.3 输出参数

<?xml version="1.0" encoding="UTF-8"?>

<ResponseStatus xmlns="http://www.isapi.org/ver20/XMLSchema" version="2.0">
  <!--ro, req, object, 响应消息, attr:version{ro, req, string, 版本, range:[,]}-->
  <requestURL>
    <!--ro, req, string, 请求的URL, range:[,]-->null
  </requestURL>
  <statusCode>
    <!--ro, req, enum, 状态码, subType:int, [0#OK,1#OK,2#Device Busy,3#Device Error,4#Invalid Operation,5#Invalid XML Format,6#Invalid XML Content,7#Reboot Required]-->0
  </statusCode>
  <statusString>
    <!--ro, req, enum, 状态信息, subType:string, [OK#成功,Device Busy#设备忙,Device Error#设备异常,Invalid Operation#无效的操作,Invalid XML Format#无效的XML格式,Invalid XML Content#无效的XML内容,Reboot#设备重启]-->OK
  </statusString>
  <subStatusCode>
    <!--ro, req, string, 详细错误码英文描述, range:[,], desc:详细错误码的英文描述-->OK
  </subStatusCode>
</ResponseStatus>