云服务器内容精选
-
响应 响应样例 { "id":"8656efdafebf440bb7008f174db6c567", "name":"c-non-motor-detection-edge", "creator":"user_test", "project_id":"1f793beac00d4801874db741cbfe10fa", "description":null, "service_version":"3.0", "edge_pool_id":"8dcf5ec7bc4d4a26aa1d3e1bb5ed2b5a", "resource_order_id":"840a5cf90d4a4bbaa71f251dfe8fe64e", "created_at":"2020-09-18T03:35:03Z", "updated_at":"2020-09-18T03:35:51Z", "state":"RUNNING", "input":{ "type":"edgecamera", "data":[ { "id":"ec723db5-e94b-4920-935c-5d5d666ad65a", "index":0 } ] }, "output": { "webhook":{ "url":"https://apigw.xx.com/api/mqs/sit", "headers":{ "content-type":"application/json" } } }, "service_config":{ "common":{ "illegal_park_detection_sw":1, "illegal_park_alert_threshold":30, "intrusion_detection_sw":0, "target_roi":"{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]],\"name\":\"legal_area\"},{\"data\":[[311,182],[282,670],[941,661],[835,170]],\"name\":\"prohibit_entering_area\"}]}", "render_result_sw":1, "render_roi_sw":1, "image_compression_ratio":90 } } } 响应参数说明 请参考作业详情参数。
-
请求 请求样例1(摄像头输入+DIS/Webhook输出) POST /v2/6204a5bd270343b5885144cf9c8c158d/services/c-non-motor-detection-edge/tasks{ "name": "c-non-motor-detection-edge-task", "description": "c-non-motor-detection-edge task test", "input": { "type": "edgecamera", "data": [ { "id": "9f8933c9-448c-48e5-8bc0-631ea83b92eb", "index": 0 } ] }, "output": { "dis": { "stream_name": "dis-c-non-motor-detection-edge" }, "webhook": { "url": "https://apigw.huawei.com/api/event/callback", "headers": { "content-type":"application/json" } } }, "service_version": "3.0", "resource_order_id": "840a5cf90d4a4bbaa71f251dfe8fe64e", "edge_pool_id": "8dcf5ec7bc4d4a26aa1d3e1bb5ed2b5a", "service_config": { "common": { "illegal_park_detection_sw": 1, "illegal_park_alert_threshold": 30, "intrusion_detection_sw": 0, "electromobile_detect_sw": 1, "bicycle_detect_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]],\"name\":\"legal_area\"},{\"data\":[[311,182],[282,670],[941,661],[835,170]],\"name\":\"prohibit_entering_area\"}]}", "render_result_sw": 1, "render_roi_sw": 1, "image_compression_ratio":90 } }} 请求样例2(edgerestful输入+DIS/Webhook输出) POST /v2/6204a5bd270343b5885144cf9c8c158d/services/c-non-motor-detection-edge/tasks{ "name": "c-non-motor-detection-edge-task", "description": "c-non-motor-detection-edge task test", "input": { "type": "edgerestful", "data": [ { "index": 0, "url":"https://100.127.134.69:554/test/data", "certificate_check": false, "rtsp_path_in_response": "data/url" } ] }, "output": { "dis": { "stream_name": "dis-c-non-motor-detection-edge" }, "webhook": { "url": "https://apigw.huawei.com/api/event/callback", "headers": { "content-type":"application/json" } } }, "service_version": "3.0", "resource_order_id": "840a5cf90d4a4bbaa71f251dfe8fe64e", "edge_pool_id": "8dcf5ec7bc4d4a26aa1d3e1bb5ed2b5a", "service_config": { "common": { "illegal_park_detection_sw": 1, "illegal_park_alert_threshold": 30, "intrusion_detection_sw": 0, "electromobile_detect_sw": 1, "bicycle_detect_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]],\"name\":\"legal_area\"},{\"data\":[[311,182],[282,670],[941,661],[835,170]],\"name\":\"prohibit_entering_area\"}]}", "render_result_sw": 1, "render_roi_sw": 1, "image_compression_ratio":90 } }} 请求样例3(VCN输入+DIS/Webhook输出) POST /v2/6204a5bd270343b5885144cf9c8c158d/services/c-non-motor-detection-edge/tasks{ "name": "c-non-motor-detection-edge-task", "description": "c-non-motor-detection-edge task test", "input": { "type": "vcn", "vcn":{ "ip":"172.100.119.6", "password":"CQeNfcRLwyMvH77AkDBaPS+BKXdFu/1bAXtIMNTx3QPbVewjipNq06nNodxWI28I1lCUsvv2+wB1joepzynLVW3g2nz0k9vaCRDoK6=", "port":"4675", "username":"testname" }, "data": [ { "index": 0, "deivce_id":"07211540881586160101#f7964493ff764bbf9294d58b22e63de6", "stream_type":1 } ] }, "output": { "dis": { "stream_name": "dis-c-non-motor-detection-edge" }, "webhook": { "url": "https://apigw.huawei.com/api/event/callback", "headers": { "content-type":"application/json" } } }, "service_version": "3.0", "resource_order_id": "840a5cf90d4a4bbaa71f251dfe8fe64e", "edge_pool_id": "8dcf5ec7bc4d4a26aa1d3e1bb5ed2b5a", "service_config": { "common": { "illegal_park_detection_sw": 1, "illegal_park_alert_threshold": 30, "intrusion_detection_sw": 0, "electromobile_detect_sw": 1, "bicycle_detect_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]],\"name\":\"legal_area\"},{\"data\":[[311,182],[282,670],[941,661],[835,170]],\"name\":\"prohibit_entering_area\"}]}", "render_result_sw": 1, "render_roi_sw": 1, "image_compression_ratio":90 } }} 参数说明 参数 是否必选 类型 说明 name 是 String 作业名称,只能由中文、字母(a~zA~Z)、数字(0~9)、中划线(-)、下划线(_)组成,长度范围为[1,100]。 description 否 String 作业描述信息,最大长度为500字符长度。 input 是 Object 视频数据输入列表,支持从指定的边缘摄像头读取数据,即输入类型为“edgecamera”,“edgerestful”,“VCN”。 详细参数定义参见task.input(任务输入参数)。 service_version 是 String 功能版本号,版本号为3.0。边缘算法版本支持的显卡硬件为T4和华为自研Davinci芯片。 resource_order_id 是 String 购买的算法能力包ID,在服务界面购买算法能力包获取。 edge_pool_id 是 String 边缘运行池ID,获取方法参见创建边缘运行池。 output 是 Object 结果数据的输出列表,目前支持以下输出类型: DIS:将结果输出到您指定的DIS通道 。 Webhook:将结果输出到Webhook URL。 Localpath:将作业的运行结果保存在边缘节点本地(节点必须为linux系统),必须为linux路径,例如“/opt/cloud/”。 详细参数定义见task.output(任务输出参数)。 service_config 否 Object 服务的算法配置,配置参数见ServiceConfig参数说明。 service_config中common参数说明 字段 是否必选 类型 说明 illegal_park_detection_sw 否 Int 对应控制台的界面参数“违停检测开关”。 违停检测开关,取值范围[0,1]: 0: 表示不检测违停事件。 1: 表示检测违停事件。 默认值:1。 illegal_park_alert_threshold 否 Int 对应控制台的界面参数“告警触发时间”。 告警触发时间阈值,当illegal_park_detection_sw=1时该参数生效。单位秒,取值范围[10,300]。电动车停留超过这个时间则告警。 默认值:30。 intrusion_detection_sw 否 Int 对应控制台的界面参数“入侵检测开关”。 0: 表示不检测入侵事件。 1: 表示检测入侵事件。 默认值:0。 electromobile_detect_sw 否 Int 对应控制台的界面参数“电动车检测开关”。 0: 表示不检测电动车。 1: 表示检测电动车。 默认值:1。 bicycle_detect_sw 否 Int 对应控制台的界面参数“自行车检测开关”。 0: 表示不检测自行车。 1: 表示检测自行车。 默认值:1。 target_roi 否 String 对应控制台的界面参数“区域设置”。 检测区域设置,包括合法停车区域、禁止进入区域。 合法停车区域,区域参数。用"name":"legal_area"标识。当非机动车停在合法停车区域之外,则触发违停事件。 禁止进入区域,区域参数。用"name":"prohibit_entering_area"标识。当有非机动车入侵禁止进入区域,则触发入侵事件。 该字段为JSON格式的字符串,API调用时需要加转义符。详细JSON格式参见target_roi(目标区域)。 例如: {"polygons":[{"data":[[43,266],[42,645],[472,644],[416,212]],"name":"legal_area"},{"data":[[311,182],[282,670],[941,661],[835,170]],"name":"prohibit_entering_area"}]} 参数没有携带时,默认全屏都是不合法停车区域;全屏都是禁止进入区域。 render_result_sw 否 Int 对应控制台的界面参数“目标框渲染开关”。 输出图像是否绘制告警目标边框,取值范围: "0":表示不绘制。 "1":表示用红色绘制告警目标边框。 默认值为0。 render_roi_sw 否 Int 对应控制台的界面参数“检测区域渲染开关”。 输出图像是否绘制检测区域,取值范围: "0":表示不绘制。 "1":表示用绿色绘制用户设定的合法停车区域,用黄色绘制用户设定的禁止进入区域。 默认值为0。 image_compression_ratio 否 Int 对应控制台的界面参数“图片压缩比”。 输出图片压缩百分比,取值范围为[20,100]。 默认值:90,表示图片压缩比为90%。
更多精彩内容
CDN加速
GaussDB
文字转换成语音
免费的服务器
如何创建网站
域名网站购买
私有云桌面
云主机哪个好
域名怎么备案
手机云电脑
SSL证书申请
云点播服务器
免费OCR是什么
电脑云桌面
域名备案怎么弄
语音转文字
文字图片识别
云桌面是什么
网址安全检测
网站建设搭建
国外CDN加速
SSL免费证书申请
短信批量发送
图片OCR识别
云数据库MySQL
个人域名购买
录音转文字
扫描图片识别文字
OCR图片识别
行驶证识别
虚拟电话号码
电话呼叫中心软件
怎么制作一个网站
Email注册网站
华为VNC
图像文字识别
企业网站制作
个人网站搭建
华为云计算
免费租用云托管
云桌面云服务器
ocr文字识别免费版
HTTPS证书申请
图片文字识别转换
国外域名注册商
使用免费虚拟主机
云电脑主机多少钱
鲲鹏云手机
短信验证码平台
OCR图片文字识别
SSL证书是什么
申请企业邮箱步骤
免费的企业用邮箱
云免流搭建教程
域名价格