- 说明
- 获取token
- 获取token
- 设备树
- 设备类
- ai云端算法配置
- 云端系统算法集
- 算法数据统计
- 人员
- 部门
- 告警回调
- 录像管理
- 端侧算法
- 智慧云店
新增或配置算法
POST
/openApi/device/ai/open/task/config/addOrEditOpenTask
请求参数
Body 参数application/json
deviceId
string | null
设备id
algorithmId
string | null
算法id
step
integer | null
抽帧频率
stepRange
string | null
频率范围
threshold
string | null
置信度
includeAreas
string | null
正向区域
openStatus
integer | null
可选
extra
string | null
可选
mosaic
string | null
可选
brainPowerAdjustSwitch
integer | null
可选
addStep
integer | null
可选
noAlarmAdjustCount
integer | null
可选
adjustMaxStep
integer | null
可选
alarmTacticsType
integer | null
可选
datasetLabel
string | null
标签id
specialParam
string | null
特殊算法参数
flowType
integer | null
可选
deliveryDriversStatus
integer | null
可选
示例
{
"deviceId": "string",
"algorithmId": "string",
"step": 0,
"stepRange": "string",
"threshold": "string",
"includeAreas": "string",
"openStatus": 0,
"extra": "string",
"mosaic": "string",
"brainPowerAdjustSwitch": 0,
"addStep": 0,
"noAlarmAdjustCount": 0,
"adjustMaxStep": 0,
"alarmTacticsType": 0,
"datasetLabel": "string",
"specialParam": "string",
"flowType": 0,
"deliveryDriversStatus": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://bcloud.jftechws.com/openApi/device/ai/open/task/config/addOrEditOpenTask' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"algorithmId": "string",
"step": 0,
"stepRange": "string",
"threshold": "string",
"includeAreas": "string",
"openStatus": 0,
"extra": "string",
"mosaic": "string",
"brainPowerAdjustSwitch": 0,
"addStep": 0,
"noAlarmAdjustCount": 0,
"adjustMaxStep": 0,
"alarmTacticsType": 0,
"datasetLabel": "string",
"specialParam": "string",
"flowType": 0,
"deliveryDriversStatus": 0
}'
返回响应
🟢200成功
application/json
Body
success
boolean | null
可选
msg
string | null
可选
code
string | null
可选
model
string | null
可选
attributes
string | null
可选
示例
{
"success": false,
"msg": "",
"code": "",
"model": "",
"attributes": ""
}