Range

Function

This API is used to get the parameter range of AI > Setup > ParcelDetection.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel“CH1” ”CH1x”“IP_CH1” ” IP_CH1x”“WIFI_CH1”…” WIFI_CH1x”
The number of channels depends on the functionality of the device.
string arrayEach array bit represents a channel with a string. DVR/NVR requirements; IPC only uses CH1
page_type“ChannelConfig”,“AlarmConfig” “AllConfig”stringData used to distinguish between channel configuration page and alarm configuration page
“AllConfig”Used in nvr to obtain and set ipc parameters, with more light than ChannelConfig_ Linkage field

Sample:

POST /API/AI/Setup/ParcelDetection/Range HTTP/1.1
{
    "version": "1.0",
    "data": {"page_type": "ChannelConfig"}
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescripton
channel_infoJson ObjectChannel information refer to Table x
Table x
ParameterRangeTypeDescription
CH1Json ObjectJson see Table 3 for more information
...Json Object
IP_CH1Json Object
...Json Object
WIFI_CH1Json Object
...Json Object
Table 3
ParameterRangeTypeDescription
switchtrue falseboolswitch,false: close true: open
sensitivity1-100intTest sensitivity
latch_time"5","10","20","30"stringAlarm output time
post_recording"0","5","10","20","30"stringRecording delay time
alarm_out“Local->1” ”Local->x”“IP_CH1->1” “IP_CH1->2” ”IP_CHx->1” ”IP_CHx->2”
The number of channels depends on the functionality of the device.
arrayAlarm channel
Each array bit is represented by a string representing the alarm output channel.
Camera: Local ->1: On, null: Off
io_outputboolInterlinked switch for IO output.
send_emailtrue falseboolSend email switch
record_enabletrue falseboolRecord channel switch
record_channel“CH1” ”CH1x”“IP_CH1” ” IP_CH1x”“WIFI_CH1”arrayAlarm output channel
Channel alarm linkage switch
ftp_picture_upload_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayCapture image FTP upload alarm output channel
ftp_picture_uploadtrue falseboolChannel image FTP upload switch
ftp_video_uploadtrue falseboolChannel video FTP upload switch
picture_to_cloudtrue falseboolImage upload switch (dedicated to NVR)
video_to_cloudtrue falseboolVideo cloud upload switch (dedicated to NVR/DVR)
ftp_video_upload_channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…”
WIFI_CH1x”
arrayVideo FTP upload alarm output channel
region_setting200*8int arrayThe Pir area is divided into row * col blocks, with each bit describing the value of a block (8 bits per byte). Bit=1: motion in this block is monitored< For example: region_ Setting [0]=(FF-FF-FF-FF-FF-F0-00-00-00):: motion in channel 0 line 0's 44 blocks are monitored Line 1's 44 blocks not monitored
mbcol1 - 44(onvif)intMotion The area is divided into row * col blocks, which are determined by camera. Set does not require
mbrow1 - 36(onvif)intMotion The area is divided into row * col blocks, which are determined by camera. Set does not require
sirenboolalarm linkage switch.
deterrenceboolAlarm light linkage switch.
mutual_exclusion"PID"
"LCD"
"SOD"
"PD"
"FD"
"CC"
"SMD"
"HEATMAP"
"CD"
"QD"
"LPD"
"OD"
"INTRUSION"
"REGIONENTRANCE"
"REGIONEXITING"
json arrayThe collection of mutex functions that have been enabled at present. Note: If there is a mutex function that is already enabled, it will be brought when Get. If it is not enabled or there is no mutual exclusion, it is not necessary to pass this field

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
  "result": "success",
  "data": {
    "channel_info": {
      "type": "object",
      "items": {
        "CH1": {
          "type": "object",
          "items": {
            "switch": {
              "type": "bool"
            },
            "sensitivity": {
              "type": "int32",
              "min": 1,
              "max": 100
            },
            "region_setting": {
              "type": "array",
              "min_size": 0,
              "max_size": 1600,
              "items": []
            },
            "mbcol": {
              "type": "int32",
              "mode": "r",
              "min": 1,
              "max": 44
            },
            "mbrow": {
              "type": "int32",
              "mode": "r",
              "min": 1,
              "max": 36
            },
            "btn_get_default_data": true
          }
        }
      }
    }
  }
}

Error Code

See Response Messages Body and Common error_code for more information.