Range
Function
This API is used to get the parameter range of AI > Setup > ParcelDetection.
Request Message
Parameter Description
Table 1
Parameter | Range | Type | Description |
---|---|---|---|
channel | “CH1” ”CH1x”“IP_CH1” ” IP_CH1x”“WIFI_CH1”…” WIFI_CH1x” The number of channels depends on the functionality of the device. | string array | Each array bit represents a channel with a string. DVR/NVR requirements; IPC only uses CH1 |
page_type | “ChannelConfig”,“AlarmConfig” “AllConfig” | string | Data 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
Parameter | Range | Type | Descripton |
---|---|---|---|
channel_info | Json Object | Channel information refer to Table x |
Table x
Parameter | Range | Type | Description |
---|---|---|---|
CH1 | Json Object | Json see Table 3 for more information | |
... | Json Object | ||
IP_CH1 | Json Object | ||
... | Json Object | ||
WIFI_CH1 | Json Object | ||
... | Json Object |
Table 3
Parameter | Range | Type | Description |
---|---|---|---|
switch | true false | bool | switch,false: close true: open |
sensitivity | 1-100 | int | Test sensitivity |
latch_time | "5","10","20","30" | string | Alarm output time |
post_recording | "0","5","10","20","30" | string | Recording 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. | array | Alarm channel Each array bit is represented by a string representing the alarm output channel. Camera: Local ->1: On, null: Off |
io_output | bool | Interlinked switch for IO output. | |
send_email | true false | bool | Send email switch |
record_enable | true false | bool | Record channel switch |
record_channel | “CH1” ”CH1x”“IP_CH1” ” IP_CH1x”“WIFI_CH1” | array | Alarm output channel Channel alarm linkage switch |
ftp_picture_upload_channel | “CH1”…”CH1x” “IP_CH1”…” IP_CH1x” “WIFI_CH1”…” WIFI_CH1x” | array | Capture image FTP upload alarm output channel |
ftp_picture_upload | true false | bool | Channel image FTP upload switch |
ftp_video_upload | true false | bool | Channel video FTP upload switch |
picture_to_cloud | true false | bool | Image upload switch (dedicated to NVR) |
video_to_cloud | true false | bool | Video cloud upload switch (dedicated to NVR/DVR) |
ftp_video_upload_channel | “CH1”…”CH1x” “IP_CH1”…” IP_CH1x” “WIFI_CH1”…” WIFI_CH1x” | array | Video FTP upload alarm output channel |
region_setting | 200*8 | int array | The 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 |
mbcol | 1 - 44(onvif) | int | Motion The area is divided into row * col blocks, which are determined by camera. Set does not require |
mbrow | 1 - 36(onvif) | int | Motion The area is divided into row * col blocks, which are determined by camera. Set does not require |
siren | bool | alarm linkage switch. | |
deterrence | bool | Alarm light linkage switch. | |
mutual_exclusion | "PID" "LCD" "SOD" "PD" "FD" "CC" "SMD" "HEATMAP" "CD" "QD" "LPD" "OD" "INTRUSION" "REGIONENTRANCE" "REGIONEXITING" | json array | The 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.