© VIVOTEK Inc. All rights reserved.
http://{IP}/Occupancy/State
get the current number & status
EX:
{"number":28,"state":"Full"}
http://{IP}/Occupancy/DetailState
Get the detail of occupancy.
1. Individual Device: In/Out number, rule name, and its source camera IP
2. Summary Data: In/Out number, manual offset, and current status.
EX:
{"Detail":[{"in":12,"ip":"10.66.108.13","out":0,"port":80,"rule":"Line1"},{"in":5,"i
p":"10.66.106.105","out":8,"port":80,"rule":"Rule-
1"}],"in":17,"number":9,"offset":0,"out":8,"state":"Crowded"}
http://{IP}/Occupancy/Offset?Add=<Num>
Offset for increase the occupancy number
<NUM>: positive integer
Example: occupancy number + 10
http://10.66.108.13/Occupancy/Offset?Add=10
http://{IP}/Occupancy/Offset?Subtract=<Num>
Offset for decrease the occupancy number
<NUM>: positive integer
Example: occupancy number 減少 5
http://10.66.108.13/Occupancy/Offset?Subtract=5
Reset the occupancy number
1. The occupancy number freeze at “Zero”. No change even people enter or
leaving the area.
Use the Get Detail API ( http://{IP}/Occupancy/DetailState). Check
whether the exit number is larger than entrance. So, the summary is
negative number and the occupancy number freeze at “ZERO”.