蜂云对外接口
  1. ai云端算法配置
蜂云对外接口
  • 说明
  • 获取token
    • 获取token
      • 获取token
  • 设备树
    • 添加节点(根节点会默认创建好无需创建)
      POST
    • 对外传入上级节点查询子设备树,传入0就是获取根节点
      POST
    • 节点编辑
      POST
    • 节点删除
      GET
  • 设备类
    • 添加国标ipc
      POST
    • 添加国标Nvr
      POST
    • 添加杰峰ipc
      POST
    • 添加杰峰Nvr
      POST
    • 根据nvr查询下面通道
      POST
    • 设备编辑
      POST
    • 设备删除
      GET
    • 设备分页查询
      POST
    • 通过设备id查询设备状态
      POST
    • 通过设备id查询直播流
      POST
    • 通过设备id查询录像时间轴
      POST
    • 通过设备id查询设备回放地址
      POST
    • 通过设备id云台控制
      POST
    • 获取对讲地址
      POST
    • 获取对讲状态
      POST
    • 关闭直播流
      POST
    • 关闭本地回放只支持hls
      POST
    • 重启设备
      POST
    • 设置直播转码地址
      POST
    • 获取直播转码地址
      POST
  • ai云端算法配置
    • 新增或配置算法
      POST
    • 设置启用状态
      POST
    • 算法任务删除
      GET
    • 获取详情
      GET
    • 分页查询
      POST
  • 云端系统算法集
    • 分页查询
    • 查询详情
  • 算法数据统计
    • 算法分析统计-总
  • 人员
    • 人员添加
    • 人员编辑
    • 人员删除
    • 人员删除
    • 分页查询人员信息
    • 根据部门id获取人员集合
    • 查询用户详情
  • 部门
    • 添加部门(根部门会默认创建好无需创建)
    • 编辑部门
    • 删除部门
    • 传入上级节点查询子部门
    • 查询部门详情
  • 告警回调
    • 告警回调接口
    • 告警信息示例
  • 录像管理
    • 添加/编辑录像计划
    • 开启/关闭录像
    • 删除录像
    • 根据设备id查询录像计划
    • 分页查询录像计划
  • 端侧算法
    • 配置设备端侧算法
    • 获取设备端侧配置列表(分页)
    • 开启/关闭
  • 智慧云店
    • 创建门店
    • 修改门店
    • 删除门店
    • 查看门店详情
  1. 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 
可选
开启状态1-开启 0-关闭
extra
string  | null 
可选
mosaic
string  | null 
可选
马赛克类型["face","plate","human"] # 马赛克参数,face:人脸打码;plate:车牌打码;human:人体打码
brainPowerAdjustSwitch
integer  | null 
可选
智能调整开关0-关闭 1-开启
addStep
integer  | null 
可选
达到检测要求后增加频率
noAlarmAdjustCount
integer  | null 
可选
需调整频率,未告警次数
adjustMaxStep
integer  | null 
可选
智能调整最大检查频率
alarmTacticsType
integer  | null 
可选
告警后测试0-继续告警 1-此时间段不告警 2-当天不告警
datasetLabel
string  | null 
标签id
可选
specialParam
string  | null 
特殊算法参数
可选
flowType
integer  | null 
可选
0-进过店 1-进店 2-过店
deliveryDriversStatus
integer  | null 
可选
0-不过滤 1-过滤
示例
{
  "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": ""
}
上一页
获取直播转码地址
下一页
设置启用状态
Built with