JSON_ShipFlowDetectionRule

ShipFlowDetectionRule message in JSON format

{
  "ShipFlowDetectionRule":{
    "id":1,
/*required, int, rule ID*/
    "enabled":true,
/*required, boolean, enable the rule*/
    "regionEnOrExAlarmEnabled":,
/*optional, boolean, enable alarm of region entrance or region exit*/
    "RegionCoordinatesList":[
      {
/*optional, list of detection region coordinates*/
        "positionX":,
/*required, int, X-coordiante*/
        "positionY":
/*required, int, Y-coordinate*/
      }
    ],
    "TriggerLineList":[
      {
        "id":,
/*required, int, trigger line ID*/
        "enabled":,
/*required, boolean, enable trigger line*/
        "MinimumTargetSize":{
/*required, the minimum target size*/
        "width":0.040,
/*required, float, width, value range: [0,1]. The value should be accurate to three decimal places*/
        "height":0.015
/*required, float, height, value range: [0,1]. The value should be accurate to three decimal places*/
        },
        "TriggerLineCoordinatesList":[
          {
            "positionX":,
/*required, float, X-coordinate*/
            "positionY":
/*required, float, Y-coordinate*/
          }
        ]
        "MaxSizeFilter":{
/*required, the maximum size filter*/
          "width":0.040,
/*required, float, width, value range: [0,1]. The value should be accurate to three decimal places*/
          "height":0.015
/*required, float, height, value range: [0,1]. The value should be accurate to three decimal places*/
        }
        "MaxSizeFilter":{
/*required, the maximum size filter*/
          "width":0.040,
/*required, float, width, value range: [0,1]. The value should be accurate to three decimal places*/
          "height":0.015
/*required, float, height, value range: [0,1]. The value should be accurate to three decimal places*/
        }
      }
    ]
  }
}