Skip to content

机动车相关接口

请求格式

URL /dynamic/api/v1/setup
Method POST

请求头说明

Key Value
Content-Type application/json

参数说明

Key Require Type Description
cameraId Y string 相机ID
url Y string 相机或视频地址
imageOut Y string base64-返回Base64
notifyUrl Y string AI分析结果上报地址
inputType Y string RTSP-像机 File-文件
decodeType N string 解码类型, 支持cpu、device两种
skipFrame Y float 抽帧率,60秒一帧,1以下代表1秒多少,比如0.15,表示1秒15帧,0.25表示1秒25帧, 暂时不考虑
roi Y arr ROI, 暂时不考虑
areaBoxes Y arr 区域框列表, 暂时不考虑, 传默认值 []即可
fileStore N object 告警凭证视频存储服务
+url Y string 文件上传地址
+type Y int 文件服务器类型 1-GoFastDFS
+nsKey N string 存储空间KEY
+nsValue N string 存储空间VALUE
abilities Y arr AI能力列表, 参考下面能力参数
+name Y string 能力名 请参考"能力列表"
+value Y object 参考abilites参数说明

abilites参数说明

参数 类型 是否必传 默认值 描述
interval float Y 0.5 跳帧间隔,单位秒
minTarry float Y 3 停留时长,单位秒
alarmInterval float Y 5 告警上报间隔,单位秒
minBox object N - 最小目标尺寸
+width int N 50 宽, 单位像素
+height int N 50 高, 单位像素
areaBoxes object[] Y - 警戒框列表
+x float Y - X坐标
+y float Y - Y坐标
threshold float N 0.4 阈值
areaIsReverse boolean N false 警戒框取反
pointType int N 1 1-绝对坐标 2-相对坐标
zoomFactor float N 1.0 场景图缩放因子
confirmCount int N 5

响应字段

参数 类型 是否必传 描述
status int Y 响应状态码
message string Y 提示消息

示例

请求

{
  "cameraId": "10000000000",
  "url": "rtsp://12312312",
  "imageOut": "base64",
  "inputType": "RTSP|File",
  "decodeType": "device",
  "notifyUrl": "http://10.10.1.124:6200/api/v1/receive",
  "skipFrame": 25,
  "roi": [],
  "areaBoxes": [],
  "fileStore": {
    "url": "http://xxx.xxx.xxx.xxx:0000",
    "type": 1,
    "nsKey": "scene",
    "nsValue": "certificate"
  },
  "abilities":[
     {
    "name": "SingleVehicleSnap",
    "value": {
            "interval": 0.5,
            "minTarry": 3,
            "alarmInterval": 5,
            "threshold": 0.4,
            "areaIsReverse": false,
            "pointType": 1,
            "zoomFactor": 1.0,
        "confirmCount": 5,
            "minBox": {
                "width": 50,
                "height": 50
             },
            "areaBoxes": [
              [
                {"x": 100, "y": 100},
                {"x": 900, "y": 100},
                {"x": 900, "y": 800},
                {"x": 100, "y": 800}
              ]
           ]
        }
     }
   ]
}

响应

{
  "status":200,
  "message"":"success"
}

报警格式

参数说明

Key Require Type Description
cameraId Y string 相机ID
alarmType Y string 告警类型
scene Y string 场景图
ts Y string 时间戳13位
uid N string 暂未使用
values Y object[] 目标数组
+vehicle Y object 目标对象
++vehicle N string 暂未使用
++vehicleBoxNo Y int 对应vehicleBoxes index
vehicleBoxes Y object[] 机动车检测框数组
+height Y int 机动车检测框宽
+width Y int 机动车检测框高
+x Y int 机动车检测框左上角x坐标
+y Y int 机动车检测框左上角y坐标
areas Y array 警戒框
extra Y object 扩展信息
+itemsInBox Y object[] 针对检测框的扩展
++confidence Y float 置信度
++color Y string 车辆颜色
++plate Y string 车牌号
++plateColor Y string 车牌类型
++plateScores Y int[] 车牌号置信度
++type Y string 车辆类型
++uid Y string 车辆追踪id

示例

{
   "alarmType":"SingleVehicleSnap",
   "cameraId":"dynamicTest23",
   "extra":{
      "itemsInBox":[
         {
            "color":"gray",
            "confidence":0.846605122089386,
            "plate":"渝N60000",
            "plateColor":"blue_plate",
            "plateScores":[
               0.8715908527374268,
               0.7146035432815552,
               0.9258352518081665,
               0.29126664996147156,
           0.48954579304895494,
               0.56903454545500509
            ],
            "type":"van",
            "uid":"4"
         }
      ]
   },
   "scene":"base64 data exist",
   "ts":1667467006947,
   "uid":"",
   "values":[
      {
         "vehicle":{
            "vehicle":"",
            "vehicleBoxNo":0
         }
      }
   ],
   "vehicleBoxes":[
      {
         "height":43,
         "width":44,
         "x":21,
         "y":499
      }
   ]
}

color参数说明

白色 黑色 灰色 红色 绿色 蓝色 黄色 棕色 其他颜色
White Black Gray Red Green Blue Yellow Brown Others

type参数说明

中文 英文
小汽车 car
小汽车-车顶 car_roof
小汽车-小 car_small
小汽车-车尾 car_rear
小汽车-侧面 car_side
小汽车-车头 car_front
小汽车-警车 car_police_car
小汽车-警车-车头 car_police_car_front
小汽车-警车-侧面 car_police_car_side
小汽车-警车-车尾 car_police_car_rear
小汽车-警车-车顶 car_police_car_roof
皮卡 pickup_truck
皮卡-车顶 pickup_roof
皮卡-车尾 pickup_rear
皮卡-侧面 pickup_side
皮卡-车头 pickup_front
皮卡-道路施工救援 pickup_road_construction_rescue
皮卡-警车 pickup_police_car
面包车 van
面包车-小 van_small
面包车-车顶 van_roof
面包车-车尾 van_rear
面包车-侧面 van_side
面包车-车头 van_front
面包车-警车 van_police_car
面包车-警车-小 van_policecar_small
面包车-警车-车头 van_police_car_front
面包车-警车-侧面 van_police_car_side
面包车-警车-车尾 van_police_car_rear
面包车-警车-车顶 van_police_car_roof
面包车-救护车 van_ambulance
面包车-救护车-小 van_ambulance_small
面包车-救护车-车头 van_ambulance_front
面包车-救护车-侧面 van_ambulance_side
面包车-救护车-车尾 van_ambulance_rear
面包车-救护车-车顶 van_ambulance_roof
面包车-房车 van_rv
面包车-房车-小 van_rv_small
面包车-房车-车头 van_rv_front
面包车-房车-侧面 van_rv_side
面包车-房车-车尾 van_rv_rear
面包车-房车-车顶 van_rv_roof
卡车-车头 truck_front
卡车-小 truck_small
卡车-车斗 truck
卡车-侧面 truck_side
卡车-车尾 truck_rear
卡车-车厢覆盖 truck_compartment_coverage
卡车-轻小型 truck_light_and_small
卡车-轻小型-侧面 truck_light_and_small_side
卡车-轻小型-车尾 truck_light_and_small_rear
卡车-厢式 truck_van
卡车-厢式-侧面 truck_van_side
卡车-厢式-车尾 truck_van_rear
卡车-牵引车 truck_tractor
卡车-牵引车-侧面 truck_tractor_side
卡车-牵引车-车尾 truck_tractor_rear
卡车-渣土车 truck_muck_truck
卡车-渣土车-侧面 truck_muck_truck_side
卡车-渣土车-车顶 truck_dump_truck_roof
卡车-渣土车-车尾 truck_muck_truck_rear
卡车-栏板式 truck_rail
卡车-栏板式-侧面 truck_rail_side
卡车-栏板式-车尾 truck_rail_rear
卡车-平板式 truck_flat
卡车-平板式-侧面 truck_flat_side
卡车-平板式-车尾 truck_flat_rear
卡车-仓栅式 truck_grate_type
卡车-仓栅式-侧面 truck_grate_side
卡车-仓栅式-车尾 truck_grate_rear
卡车-救援拖车 truck_rescue_trailer
卡车-救援拖车-侧面 truck_rescue_trailer_side
卡车-运输拖车-空 truck_transport_trailer_empty
卡车-运输拖车-空-侧面 truck_transport_trailer_empty_side
卡车-运输拖车-载 truck_transport_trailer_load
卡车-运输拖车-载-侧面 truck_transport_trailer_load_side
卡车-工程车拖车-空 truck_engineering_vehicle_trailer_empty
卡车-工程车拖车-空-侧面 truck_engineering_trailer_empty_side
卡车-工程车拖车-载 truck_engineering_vehicle_trailer_load
卡车-工程车拖车-载-侧面 truck_engineering_trailer_load_side
卡车-道路救援 truck_road_rescue
叉车 forklift
叉车-车尾 forklift_rear
叉车-侧面 forklift_side
叉车-车头 forklift_head
工程车-车顶 engineering_vehicle_roof
工程车-车尾 engineering_vehicle_rear
工程车-小 engineering_vehicle_small
推土机 bulldozer
推土机-车头 bulldozer_front
推土机-侧面 bulldozer_side
吊车 crane
吊车-车头 crane_head
吊车-侧面 crane_side
吊车-车尾 crane_rear
吊车-道路救援 crane_road_rescue
压路机 roller
压路机-车头 roller_head
压路机-侧面 roller_side
压路机-车尾 roller_rear
挖掘机 excavator
挖掘机-车头 excavator_front
挖掘机-侧面 excavator_side
应用类车-车顶 application_vehicle_roof
应用类车-小 application_vehicle_small
油罐车 tanker
油罐车-车尾 tanker_rear
油罐车-侧面 tanker_side
洒水车 sprinkler
洒水车-车尾 sprinkler_rear
洒水车-侧面 sprinkler_side
危化车-厢式 hazardous_chemical_vehicle_van
危化车-厢式-车尾 hazardous_chemical_vehicle_van_rear
危化车-厢式-侧面 hazardous_chemical_vehicle_van_side
混凝土车-搅拌式 concrete_truck_mixer
混凝土车-搅拌式-车尾 concrete_truck_mixer_rear
混凝土车-搅拌式-侧面 concrete_truck_mixer_side
混凝土车-土泵式 concrete_truck_earth_pump
混凝土车-土泵式-车尾 concrete_truck_earth_pump_rear
混凝土车-土泵式-侧面 concrete_truck_earth_pump_side
消防车 fire_engine
消防车-车尾 fire_truck_rear
消防车-侧面 fire_truck_side
垃圾车 garbage_truck
垃圾车-车尾 garbage_truck_rear
垃圾车-侧面 garbage_truck_side
公共交通类车-车头 public_transport_vehicles_front
公共交通类车-车尾 public_transport_vehicles_rear
公共交通类车-侧面 public_transport_vehicles_side
公共交通类车-小 public_transport_vehicles_small
公共交通类车-车顶 public_transport_vehicles_roof
公交车 bus
双层巴士 double_decker_bus
大巴车 big_bus
农用拖拉机-车头 agricultural_tractor_front
农用拖拉机-侧面 agricultural_tractors_side
农用拖拉机-车尾 agricultural_tractor_rear
农用拖拉机-小 agricultural_tractors_small
农用拖拉机-敞开式 agricultural_tractors_open
农用拖拉机-厢式 agricultural_tractor_van
自行车-车头 bicycle_front
自行车-车尾 bicycle_rear
普通自行车 ordinary_bicycle
普通自行车-侧面 ordinary_bicycle_side
摩托车-车头 motorcycle_front
摩托车-车尾 motorcycle_rear
摩托车-侧面 motorcycle_side
摩托车-无棚 motorcycle_no_shed
摩托车-带棚 motorcycle_with_shed
摩托车-四轮 motorcycle_four_wheels
摩托车-四轮-车头 motorcycle_four_wheels_head
摩托车-四轮-车尾 motorcycle_four_wheels_rear
摩托车-四轮-侧面 motorcycle_four_wheels_side
电动摩托车-车头 electric_motorcycle_head
电动摩托车-车尾 electric_motorcycle_rear
电动摩托车-侧面 electric_motorcycle_side
电动摩托车-无棚 electric_motorcycle_without_shed
电动摩托车-带棚 electric_motorcycle_with_shed
电动自行车-车头 electric_bicycle_front
电动自行车-车尾 electric_bicycle_rear
电动自行车-侧面 electric_bicycle_side
电动自行车-无棚 electric_bicycle_without_shed
电动自行车-带棚 electric_bicycle_with_shed
三轮车-车头 tricycle_front
三轮车-车顶 tricycle_roof
三轮车-小 tricycle_small
人力三轮车-无棚 manpower_tricycle_no_shed
人力三轮车-带棚 manpower_tricycle_with_shed
人力三轮车-带棚-侧面 manpower_tricycle_with_shed_side
人力三轮车-无棚-侧面 manpower_tricycle_shed_less_side
货三轮车-敞开式 cargo_tricycle_open
货三轮车-敞开式-侧面 cargo_tricycle_open_side
货三轮车-厢式 cargo_tricycle_van
货三轮车-厢式-侧面 cargo_tricycle_van_side
客三轮车-敞开式 passenger_tricycle_open
客三轮车-敞开式-侧面 passenger_tricycle_open_side
客三轮车-厢式 passenger_tricycle_van
客三轮车-厢式-侧面 passenger_tricycle_van_side
火车 train
火车-小 train_small
塔吊 tower_crane
塔吊臂 tower_boom
塔吊桩 tower_crane_pile
自行车-黄色 bike_yellow
自行车-黄色-侧面 bicycle_yellow_side
自行车-蓝色 bike_blue
自行车-蓝色-侧面 bike_blue_side
自行车-绿色 bike_green
自行车-绿色-侧面 bike_green_side
电动滑板车 electric_scooter
电动滑板车-车头 electric_scooter_front
电动滑板车-车尾 electric_scooter_rear
电动滑板车-侧面 electric_scooter_side
轮胎 tyre
手推车 wheelbarrow
非机动车堆 non_motor_vehicle_pile
非机动车-小 non_motor_vehicles_small
其他车 other_cars
其他车-小 other_cars_small

车牌识别(VehicleLicenseRecon)type参数说明

中文 英文
蓝色车牌 blue_plate
黄色车牌 yellow_plate
白色车牌 white_plate
绿色车牌 green_plate
黑色车牌 black_plate
黄绿色车牌 yellow_green_plate
黄色双层车牌 double_yellow_plate
白色双层车牌 double_white_plate
绿色双层车牌 double_green_plate
蓝色双层车牌 double_blue_plate
黑色双层车牌 double_black_plate

能力列表

中文名 英文名
机动车识别(抓拍) MotorVehicleBreakIn
机动车违停/车辆乱停放 MotorVehicleParking
渣土车识别(限行) ConstructionTrunk
车辆属性 SingleVehicleSnap
车型识别 SocialVehicleDetect
车牌识别 VehicleLicenseRecon