JSON_PersonQueueDetectionInfo

JSON message about people queuing-up parameters

{    
  "PersonQueueDetectionInfo": {
/*required, queue management configuration information*/    
    "countingEnabled": ,
/*required, boolean, enable people queuing-up detection*/	    
    "queueTimeEnabled": ,
/*required, boolean, enable waiting time detection*/		
    "RuleInfo": [{
/*required, queue management rule information, the number of rules is ranging from 1 to 3*/		    
      "ruleID": ,
/*required, integer, rule ID*/			
      "ruleName": "",
/*required, string, rule name, string size: between 0 and 32*/			
      "OSDOverlayEnabled": ,
/*required, boolean, enable OSD*/			
      "alarmIntervalTime": ,
/*required, integer, alarm time interval, range: between 0 to 3600s, default: 300s*/			
      "PersonQueueCounting":{
/*required, people queuing-up parameters*/				
        "alarmCount": ,
/*required, integer, number threshold of persons for triggering alarm, range: between 0 and 60 persons, default: 10*/
        "countTriggerType": "",
/*optional, string type, triggering type of people queuing-up alarm: "greater", "less", "equal", "unequal"-the alarm is triggered when the number of queuing-up persons is larger than, smaller than, equal to, or not equal to the value of alarmCount; "range"-the alarm is triggered when the number of queuing-up person is in the range between maxAlarmCount and alarmCount*/
        "maxAlarmCount":  ,
/*dep, integer type, maximum number of queuing-up persons to trigger alarm, it is valid when countTriggerType is "range"*/
        "durationTime": 
/*optional, integer type, queuing-up status (number of queuing-up persons) keeping duration, which is between 0 and 3600, the default duration is 300, unit: second; the people queuing-up alarm is triggered if the number of queuing-up persons keeps for the configured duration*/   
      },			
      "PersonQueueTime":{
/*required, waiting time detection parameters*/				
        "alarmTime": ,
/*required, integer, waiting time threshold for triggering alarm, range: between 0 and 3600s, default: 600s*/
        "timeTriggerType": ""
/*optional, string type, triggering type of waiting time detection alarm: "greater", "less", "equal", "unequal"-the alarm is triggered when waiting time is larger than, smaller than, equal to, or not equal to the value of alarmTime*/
      },		
      "regionColor": "",
/*required, string, color of region that configured with rule, "blue, red, yellow"*/			
      "Region": [{
/*required, coordinates of region (polygon, 3 to 10 sides) that configured with rule*/			    
        "x": , 
/*required, float, x-coordinate, range: between 0.000  and 1*/			
        "y": 
/*required, float, y-coordinate, range: between 0.000 and 1*/
      }]
    }]
    "alarmPicEnabled": ,
/*optional, boolean, whether to upload pictures (i.e., background picture and human body thumbnail) when alarm is triggered, if this node is not supported by device, the alarm pictures will be uploaded by default*/
    "realTimeEnabled": 
/*optional, boolean, whether to upload real-time data of queue management, the corresponding event type is "personQueueRealTime"*/
  }
}

Message Example

{
  "PersonQueueDetectionInfo": {
    "countingEnabled":  false,
    "queuetimeEnabled": true,
    "RuleInfo": [{
      "ruleID": 1,
      "ruleName": "East Window",
      "OSDOverlayEnabled":    true,
      "alarmIntervalTime":    300,
      "PersonQueueCounting":{
        "alarmCount":   5,
        "countTriggerType": "range",
        "maxAlarmCount": 5,
        "durationTime": 300
      },
      "PersonQueueTime": {
        "alarmTime": 300,
        "timeTriggerType": "greater"
      },
      "regionColor":  "yellow",
        "Region":   [{
          "x": 0.411000,
          "y": 0.325000
        },
        {
          "x":    0.250000,
          "y":    0.643000
        },
       {
          "x":    0.435000,
          "y":    0.751000
        }, 
       {
          "x":    0.576000,
          "y":    0.675000
        }, 
       {
          "x":    0.647000,
          "y":    0.501000
        }]
      }, 
      {
        "ruleID":   2,
        "ruleName": "Area2",
        "OSDOverlayEnabled":    true,
        "alarmIntervalTime":    300,
        "PersonQueueCounting":{
          "alarmCount":   5
        },
        "PersonQueueTime":{
          "alarmTime":    300
        },
        "regionColor":  "yellow",
          "Region":[{
            "x":0.106000,
            "y":0.218000
           }, 
          {
            "x":    0.078000,
            "y":    0.383000
          }, 
          {
             "x":    0.282000,
             "y":    0.429000
          }, 
          {
             "x":    0.369000,
             "y":    0.204000
          }, 
          {
             "x":    0.188000,
             "y":    0.019000
         }]
      }]
      "alarmPicEnabled": true,
      "realTimeEnabled": true
   }
}