华为云用户手册

  • 如何进行连接器执行动作的测试? 未发布的连接器无法直接进行测试,需要发布后,在连接器执行动作页面进行测试。测试执行动作的具体操作如下: 在我的连接器列表中,单击连接器名称,选择“执行动作”页签,单击“创建执行动作”。 设置执行动作基本信息。 设置完成后,单击“保存”。 测试执行动作。测试执行动作前需要先发布连接器。 在界面右上方单击“发布”发布连接器。 在“测试”界面中,配置连接以及输入参数,配置完成后单击“提交测试”。如果没有创建连接,请先创建连接。 如果该连接器采用“无验证”方式,则无需配置连接。 如果输入或输出为文件格式,则不支持测试。 测试完成后,可查看测试结果和测试历史。 如果测试通过,表示执行动作创建完成。 如果测试不通过,您可以单击“操作”列的“编辑”修改执行动作。修改完成后单击界面右上方“发布”重新发布连接器,再对该执行动作进行测试。 父主题: 连接器管理
  • 在续费管理页面开通自动续费 登录管理控制台。 在“控制台”页面,鼠标悬浮在“费用”上,在下拉菜单中选择“续费管理”。进入“续费管理”页面。 自定义查询条件。 可在“自动续费项”页签查询已经开通自动续费的资源。 可对“手动续费项”“到期转按需项”“到期不续费项”页签的资源开通自动续费。 为包年/包月资源开通自动续费。 单个资源开通自动续费:选择需要开通自动续费的套餐包,在“操作”列下单击“开通自动续费”。 批量资源开通自动续费:选择需要开通自动续费的套餐包,在列表左上角单击“开通自动续费”。 选择续费时长,根据需要设置自动续费次数,单击“开通”。
  • 回调示例 录制文件生成事件回调示例如下。回调消息体字段如表2所示。 { "project_id": "70b76xxxxxx34253880af501cdxxxxxx", "job_id": "dc0a1773-0cef-xxxx-xxxx-9a38fdb095d2", "task_id": "51126d0ebe94b1da00d2e21a10xxxxxx", "event_type": "RECORD_FILE_COMPLETE", "publish_domain": "push.example.com", "app": "live", "stream": "mystream", "record_format": "HLS", "download_url": "https://obs.cn-north-4.myhuaweicloud.com/live/record-xxxx-mystream-1589967495/record-push.example.com-live-mystream-1589967495.m3u8", "asset_id": "1a0d8e9bfaexxxxxxbe5021e62aa1e96", "file_size": 3957964, "record_duration": 120, "start_time": "2020-03-08T14:10:25Z", "end_time": "2020-03-08T14:12:25Z", "width": 1280, "height": 720, "auth_sign": "4f97f46759axxxxxx7ad21e9935dc175", "auth_timestamp": 1583676745 }
  • 入门指引 若您需要用自己的 域名 体验完整的云直播功能,可以参考本节快速实现,具体的操作流程,如图1所示。 图1 云直播入门流程 云直播入门操作流程说明,如表1所示。 表1 云直播入门流程说明 序号 操作方法 操作说明 1 添加直播域名 将准备的已备案的域名添加到 视频直播 服务,包括推流域名和播放域名。您可以注册备案一个一级域名(如example.com),然后使用两个不同的二级域名(如live-play.example.com和live-push.example.com)作为直播推流域名和播放域名。 2 关联域名 推流域名和播放域名添加完成后,您需要在播放域名中关联对应的推流域名,否则将会导致播放失败。 3 配置CNAME 推流域名和播放域名添加成功后,视频直播会为其分配对应的CNAME地址。您需要在域名DNS服务商处为推流域名和播放域名配置CNAME解析,开启直播推流加速和播放加速。 4 开启HTTPS安全加速 您可以为低时延直播开启HTTPS安全加速,保障您的直播数据在传输过程中受到加密保护。 仅低时延直播场景,需要执行此操作。 4 配置推流(可选) 配置转码模板 配置录制模板 配置截图模板 配置推流鉴权 配置播流(可选) 配置延时 配置拉流回源 配置HTTPS 配置播放鉴权 若您需要对直播进行录制、转码、截图、鉴权等操作,您可以在直播开始前,进行相关的配置。 5 推流 您可以使用第三方推流工具OBS进行推流。 标准直播场景,请参考推流操作。 低时延直播场景,请参考推流操作。 6 播放 标准直播场景:您可以使用第三方播放工具VLC进行播放。操作请参考播放。 低时延直播场景:您可以使用华为云低时延在线Demo或根据API接口开放web端播放。操作请参考播放(Web接入方式)。 父主题: 快速入门
  • 注意事项 此功能仅支持“华北-北京四”区域使用。 录制规则配置支持域名级、应用级和流级,优先生效细粒度配置(即流级别最优先),同级配置不支持多种录制类型。 直播服务不支持清理录制内容,仅记录直播录制事件,且直播录制事件的数据只保留30天。 直播录制过程中,若直播推流因网络抖动等问题中断,则直播服务将中止录制。当推流重新启动时,直播服务将重新开启新的录制任务。 配置录制后,启动推流即开始录制,结束推流才可停止录制,暂无法按需停启;若在推流过程中删除录制规则,录制仍然会继续,直到推流结束 。 仅支持对接收到的源直播流进行录制,暂不支持录制直播转码流。
  • 支持审计的关键操作列表 表1 表1 云审计 服务支持的云服务器操作列表 操作名称 资源类型 事件名称 创建直播域名 domain createDomain 删除直播域名 domain deleteDomain 修改直播域名 domain updateDomain 域名映射 domain createDomainsMapping 删除直播域名映射关系 domain deleteDomainsMapping 新增或覆盖直播推流通知配置 domain updateStreamNotification 删除直播推流通知配置 domain deleteStreamNotification 创建直播域名配置项 domain createCDNConfig 修改直播域名配置项 domain updateCDNConfig 删除直播域名配置项 domain deleteCDNConfig 修改IP黑白名单 domain updateIPAuthList 修改直播业务地域限制列表 domain updateGeoBlocking 设置referer防盗链黑白名单 domain updateRefererChain 删除referer防盗链黑白名单 domain deleteRefererChain 创建录制规则 transcode createTranscodingsTemplate 修改录制规则 transcode deleteTranscodingsTemplate 删除录制规则 transcode updateTranscodingsTemplate 添加转码SEI信息 transcode createSEI 禁止直播推流 stream createStreamForbidden 禁推恢复 stream deleteStreamForbidden 修改禁推属性 stream updateStreamForbidden 直播流闪断 stream createStreamForbiddenOnce 创建外网拉流注入任务 stream createPullTask 删除外网拉流注入任务 stream deletePullTask 设置计费模式 tenant updateChargingMode 创建录制规则 record createRule 修改录制规则 record updateRule 删除录制规则 record deleteRule 提交录制控制命令 record createCommand 创建录制回调配置 record createCallback 修改录制回调配置 record updateCallback 删除录制回调配置 record deleteCallback 添加直播截图配置 snapshot createRule 修改直播截图配置 snapshot updateRule 删除直播截图配置 snapshot deleteRule
  • 动作活体检测 目前支持检测视频文件,或视频的Base64编码,不支持直接检测视频流,需要用户客户端自己获取视频流并保存成文件,然后调用活体检测接口。 视频文件大小不超过8MB,建议客户端压缩到200KB~2MB。 限制视频时长1~15秒。 建议帧率10fps~30fps。 封装格式:mp4、avi、flv、webm、asf、mov。 视频编码格式:h261、h263、h264、hevc、vc1、vp8、vp9、wmv3。
  • 人脸检测/比对/搜索 人脸比对输入的两张图片总大小小于8MB。 图片大小小于8MB,由于图片过大会导致图片在网络传输过程中耗时较长,建议小于1MB。 图片分辨率小于4096*4096,图片中人脸像素大于80*80,建议120*120以上。 为保证识别效果,人脸图片建议要求如下: 光照大于200lux、无反光强光阴影现象。 人脸无遮挡、整体清晰无拖尾抖动等运动模糊。 侧脸不超过30°、俯仰角小于15°、偏转角小于15°、图片中人脸保持竖置正脸。
  • 使用服务 人脸识别 提供了Web化的服务管理平台,即管理控制台,以及基于HTTPS请求的API管理方式。人脸识别以开放API的方式提供给用户,用户需要将人脸识别集成到第三方系统后才可使用。 用户需要先在管理控制台开通 人脸识别服务 ,使用第三方系统调用API即可使用服务,具体流程如下: 申请服务 在使用服务之前,您需要先登录人脸识别管理控制台开通服务,服务开通一次即可,后续使用时无需再开通。 在使用人脸识别服务时需要对OBS的数据进行操作,因此需要先同意服务授权:在开通服务界面,单击右上角“服务授权”,完成OBS授权操作。 获取请求认证 调用人脸识别的API有如下两种认证方式,请任选其中一种进行认证鉴权,鉴权详情请参见《认证鉴权》。 Token认证:通过Token认证调用请求。 AK/SK认证:通过AK/SK加密调用请求。AK/SK认证安全性更高。 调用API 人脸识别以API的方式提供服务,具体请参见《人脸识别API参考》。 查看服务使用信息 用户可以在人脸识别管理控制台查看服务调用成功的次数。
  • 云监控 人脸识别服务使用云监控(Cloud Eye)监控各个子服务的API调用次数、时延等信息,具体如表2所示。云监控的更多信息请参见《云监控用户指南》。 表2 监控指标 指标名称 指标含义 取值范围 测量对象 成功调用次数 该指标用于统计API的成功调用次数。 单位:次(times)。 ≥ 0 times 人脸识别 失败调用次数 该指标用于统计状态码为5xx的调用API失败的次数。 单位:次(times)。 ≥ 0 times 人脸识别 平均时延 该指标用于统计API的平均时延。 单位:毫秒(ms)。 ≥ 0 ms 人脸识别 人脸数量 该指标用于统计人脸库的人脸数量。 建议人脸库的名称不要以下划线“_”开头,否则 云监控服务 会无法采集人脸数量。 单位:张(count)。 ≥ 0 count 人脸识别
  • 请求示例 人流量作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-flowcount-cloud/tasks { "name" : "flowcount-task", "description" : "flowcount task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "line_count_interval" : 2, "region_count_interval" : 2, "line_detection_sw" : 1, "region_detection_sw" : 1, "target_roi" : "{\"lines\":[{\"data\":[[560,680],[1185,506]],\"properties\":{\"side1_name\":\"Side1\",\"side2_name\":\"Side2\"}}],\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "heatmap_detection_sw" : 0, "heatmap_detection_interval" : 60, "heatmap_point_interval" : 4 } } } 人流量作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-flowcount-cloud/tasks { "name" : "flowcount-task", "description" : "flowcount task test", "input" : { "type" : "obs", "data" : [ { "bucket" : "obs_test_video", "path" : "test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "line_count_interval" : 2, "region_count_interval" : 2, "line_detection_sw" : 1, "region_detection_sw" : 1, "target_roi" : "{\"lines\":[{\"data\":[[560,680],[1185,506]],\"properties\":{\"side1_name\":\"Side1\",\"side2_name\":\"Side2\"}}],\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "heatmap_detection_sw" : 0, "heatmap_detection_interval" : 60, "heatmap_point_interval" : 4 } } } 人流量作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-flowcount-cloud/tasks { "name" : "flowcount-task", "description" : "flowcount task test", "input" : { "type" : "url", "data" : [ { "url" : "https://obs_test/test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "line_count_interval" : 2, "region_count_interval" : 2, "line_detection_sw" : 1, "region_detection_sw" : 1, "target_roi" : "{\"lines\":[{\"data\":[[560,680],[1185,506]],\"properties\":{\"side1_name\":\"Side1\",\"side2_name\":\"Side2\"}}],\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "heatmap_detection_sw" : 0, "heatmap_detection_interval" : 60, "heatmap_point_interval" : 4 } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 云上城管事件-动态视角井盖缺失检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-mobile-manholecover-cloud/tasks { "name" : "mobile-manholecovermiss-detect-task", "description" : "manholecovermiss task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } } 云上城管事件-动态视角井盖缺失检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-mobile-manholecover-cloud/tasks { "name" : "mobile-manholecovermiss-detect-task", "description" : "manholecovermiss task test", "input" : { "type" : "url", "data" : [ { "url" : "https://obs_test/test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } } 云上城管事件-动态视角井盖缺失检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-mobile-manholecover-cloud/tasks { "name" : "mobile-manholecovermiss-detect-task", "description" : "manholecovermiss task test", "input" : { "type" : "obs", "data" : [ { "bucket" : "obs_test_video", "path" : "test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 边缘戴口罩检测作业创建,使用输入源为video_source,输出为webhook。 POST /v2/{project_id}/services/c-wear-mask-recog-edge/tasks { "name" : "wearmask-task", "description" : "wearmask detection task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "webhook" : { "url" : "https://127.0.0.1:8080/webhook", "headers" : { "x-auth-token" : "tokentest" } } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "image_compression_ratio" : 90 } } } 边缘戴口罩检测作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-wear-mask-recog-edge/tasks { "name" : "wearmask-task", "description" : "wearmask detection task test", "input" : { "type" : "vcn", "data" : [ { "device_id" : "aec5857c-222f-4aa9-be39-23654e118886", "stream_type" : 2 } ], "vcn" : { "ip" : "127.0.0.1", "port" : 8080, "username" : "vcntest", "password" : "123456abcd" } }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "image_compression_ratio" : 90 } } } 边缘戴口罩检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-wear-mask-recog-edge/tasks { "name" : "wearmask-task", "description" : "wearmask detection task test", "input" : { "type" : "edgecamera", "data" : [ { "id" : "aec5857c-222f-4aa9-be39-23654e118886", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "image_compression_ratio" : 90 } } } 边缘戴口罩检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-wear-mask-recog-edge/tasks { "name" : "wearmask-task", "description" : "wearmask detection task test", "input" : { "type" : "restful", "data" : [ { "url" : "https://restfultest", "certificate_check" : false, "node_id" : "aec5857c-222f-4aa9-be39-23654e118886", "rtsp_path_in_response" : "http://testpath" } ] }, "output" : { "webhook" : { "url" : "https://127.0.0.1:8080/webhook", "headers" : { "x-auth-token" : "tokentest" } } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "image_compression_ratio" : 90 } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 云上非机动车检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-non-motor-detection-cloud/tasks { "name" : "nonmotor-task", "description" : "nonmotor task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "event_disappear_alert_sw" : 0, "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 } } } 云上非机动车检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-non-motor-detection-cloud/tasks { "name" : "nonmotor-task", "description" : "nonmotor task test", "input" : { "type" : "url", "data" : [ { "url" : "https://obs_test/test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "event_disappear_alert_sw" : 0, "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 } } } 云上非机动车检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-non-motor-detection-cloud/tasks { "name" : "nonmotor-task", "description" : "nonmotor task test", "input" : { "type" : "obs", "data" : [ { "bucket" : "obs_test_video", "path" : "test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "event_disappear_alert_sw" : 0, "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 } } }
  • 请求示例 云上城管事件-动态视角垃圾检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-mobile-trash-detect-cloud/tasks { "name" : "mobile-trash-task", "description" : "mobile-trash task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "min_trash_size" : 1, "render_result_sw" : 1 } } } 云上城管事件-动态视角垃圾检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-mobile-trash-detect-cloud/tasks { "name" : "mobile-trash-task", "description" : "mobile-trash task test", "input" : { "type" : "url", "data" : [ { "url" : "https://obs_test/test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "min_trash_size" : 1, "render_result_sw" : 1 } } } 云上城管事件-动态视角垃圾检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-mobile-trash-detect-cloud/tasks { "name" : "mobile-trash-task", "description" : "mobile-trash task test", "input" : { "type" : "obs", "data" : [ { "bucket" : "obs_test_video", "path" : "test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "min_trash_size" : 1, "render_result_sw" : 1 } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 边缘河道标定水尺识别作业创建,使用输入源为video_source,输出为webhook。 POST /v2/{project_id}/services/cali-water-ruler-river-edge/tasks { "name" : "water-ruler-task", "description" : "water-ruler task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "webhook" : { "url" : "https://apigw.huawei.com/xxx/xxx/callback", "headers" : { "content-type" : "application/json" } } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "report_interval" : 1, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "calibration_info" : "{\"lines\":[{\"data\":[[460,741],[660,741]],\"scale\":110},{\"data\":[[460,420],[660,420]],\"scale\":71},{\"data\":[[460,190],[660,190]],\"scale\":22}]}", "render_result_sw" : 1, "render_roi_sw" : 1, "render_calibration_sw" : 1 } } } 边缘河道标定水尺识别作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/cali-water-ruler-river-edge/tasks { "name" : "water-ruler-task", "description" : "water-ruler task test", "input" : { "type" : "edgecamera", "data" : [ { "id" : "aec5857c-222f-4aa9-be39-23654e118886", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "report_interval" : 1, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "calibration_info" : "{\"lines\":[{\"data\":[[460,741],[660,741]],\"scale\":110},{\"data\":[[460,420],[660,420]],\"scale\":71},{\"data\":[[460,190],[660,190]],\"scale\":22}]}", "render_result_sw" : 1, "render_roi_sw" : 1, "render_calibration_sw" : 1 } } } 边缘河道标定水尺识别作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/cali-water-ruler-river-edge/tasks { "name" : "water-ruler-task", "description" : "water-ruler task test", "input" : { "type" : "vcn", "vcn" : { "ip" : "xxx.xxx.xxx.xxx", "password" : "CQeNfcRLwyMvH77AkDBaPS+BKXdFu/1bAXtIMNTx3QPbVewjipNq06nNodxWI28I1lCUsvv2+wB1joepzynLVW3g2nz0k9vaCRDoK6=", "port" : "xxx", "username" : "testname" }, "data" : [ { "index" : 0, "stream_type" : 1, "device_id" : "07211540881586160101#f7964493ff764bbf9294d58b22e63de6" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "report_interval" : 1, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "calibration_info" : "{\"lines\":[{\"data\":[[460,741],[660,741]],\"scale\":110},{\"data\":[[460,420],[660,420]],\"scale\":71},{\"data\":[[460,190],[660,190]],\"scale\":22}]}", "render_result_sw" : 1, "render_roi_sw" : 1, "render_calibration_sw" : 1 } } } 边缘河道标定水尺识别作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/cali-water-ruler-river-edge/tasks { "name" : "water-ruler-task", "description" : "water-ruler task test", "input" : { "type" : "restful", "data" : [ { "index" : 0, "url" : "http://xxx.xxx.xxx.xxx:xxx/test/data", "certificate_check" : false, "rtsp_path_in_response" : "data/url" } ] }, "output" : { "webhook" : { "url" : "https://apigw.huawei.com/xxx/xxx/callback", "headers" : { "content-type" : "application/json" } } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "report_interval" : 1, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "calibration_info" : "{\"lines\":[{\"data\":[[460,741],[660,741]],\"scale\":110},{\"data\":[[460,420],[660,420]],\"scale\":71},{\"data\":[[460,190],[660,190]],\"scale\":22}]}", "render_result_sw" : 1, "render_roi_sw" : 1, "render_calibration_sw" : 1 } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 云上打架检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-fightdetect-cloud/tasks { "name" : "fight-detection-task", "description" : "fight detection task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1 } } } 云上打架检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-fightdetect-cloud/tasks { "name" : "fight-detection-task", "description" : "fight detection task test", "input" : { "type" : "url", "data" : [ { "url" : "https://obs_test/test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1 } } } 云上打架检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-fightdetect-cloud/tasks { "name" : "fight-detection-task", "description" : "fight detection task test", "input" : { "type" : "obs", "data" : [ { "bucket" : "obs_test_video", "path" : "test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1 } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 边缘高点车辆统计作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-vehicle-statistics-edge/tasks { "name" : "vehicle-statistics-task", "description" : "vehicle-statistics task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "target_roi" : "{\"polygons\":[{\"data\":[[487,465],[1850,450],[1905,1013],[515,1050]]}]}}", "count_interval" : 10, "output_image_sw" : 1, "image_compression_ratio" : 100 } } } 边缘高点车辆统计作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-vehicle-statistics-edge/tasks { "name" : "vehicle-statistics-task", "description" : "vehicle-statistics task test", "input" : { "type" : "restful", "data" : [ { "index" : 0, "url" : "http://xxx.xxx.xxx.xxx:xxx/test/data", "certificate_check" : false, "rtsp_path_in_response" : "data/url" } ] }, "output" : { "webhook" : { "url" : "https://apigw.huawei.com/xxx/xxx/callback", "headers" : { "content-type" : "application/json" } } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "target_roi" : "{\"polygons\":[{\"data\":[[487,465],[1850,450],[1905,1013],[515,1050]]}]}}", "count_interval" : 10, "output_image_sw" : 1, "image_compression_ratio" : 100 } } } 边缘高点车辆统计作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-vehicle-statistics-edge/tasks { "name" : "vehicle-statistics-task", "description" : "vehicle-statistics task test", "input" : { "type" : "edgecamera", "data" : [ { "id" : "aec5857c-222f-4aa9-be39-23654e118886", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "target_roi" : "{\"polygons\":[{\"data\":[[487,465],[1850,450],[1905,1013],[515,1050]]}]}}", "count_interval" : 10, "output_image_sw" : 1, "image_compression_ratio" : 100 } } } 边缘高点车辆统计作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-vehicle-statistics-edge/tasks { "name" : "vehicle-statistics-task", "description" : "vehicle-statistics task test", "input" : { "type" : "vcn", "vcn" : { "ip" : "xxx.xxx.xxx.xxx", "password" : "CQeNfcRLwyMvH77AkDBaPS+BKXdFu/1bAXtIMNTx3QPbVewjipNq06nNodxWI28I1lCUsvv2+wB1joepzynLVW3g2nz0k9vaCRDoK6=", "port" : "xxx", "username" : "testname" }, "data" : [ { "index" : 0, "stream_type" : 1, "device_id" : "07211540881586160101#f7964493ff764bbf9294d58b22e63de6" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "target_roi" : "{\"polygons\":[{\"data\":[[487,465],[1850,450],[1905,1013],[515,1050]]}]}}", "count_interval" : 10, "output_image_sw" : 1, "image_compression_ratio" : 100 } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 边缘城管事件-裸土暴露检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-urban-soil-exposure-edge/tasks { "name" : "soil-exposure-task", "description" : "soil-exposure task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } } 边缘城管事件-裸土暴露检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-urban-soil-exposure-edge/tasks { "name" : "soil-exposure-task", "description" : "soil-exposure task test", "input" : { "type" : "restful", "data" : [ { "index" : 0, "url" : "http://xxx.xxx.xxx.xxx:xxx/test/data", "certificate_check" : false, "rtsp_path_in_response" : "data/url" } ] }, "output" : { "webhook" : { "url" : "https://apigw.huawei.com/xxx/xxx/callback", "headers" : { "content-type" : "application/json" } } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } } 边缘城管事件-裸土暴露检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-urban-soil-exposure-edge/tasks { "name" : "soil-exposure-task", "description" : "soil-exposure task test", "input" : { "type" : "edgecamera", "data" : [ { "id" : "aec5857c-222f-4aa9-be39-23654e118886", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } } 边缘城管事件-裸土暴露检测作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-urban-soil-exposure-edge/tasks { "name" : "soil-exposure-task", "description" : "soil-exposure task test", "input" : { "type" : "vcn", "vcn" : { "ip" : "xxx.xxx.xxx.xxx", "password" : "CQeNfcRLwyMvH77AkDBaPS+BKXdFu/1bAXtIMNTx3QPbVewjipNq06nNodxWI28I1lCUsvv2+wB1joepzynLVW3g2nz0k9vaCRDoK6=", "port" : "xxx", "username" : "testname" }, "data" : [ { "index" : 0, "stream_type" : 1, "device_id" : "07211540881586160101#f7964493ff764bbf9294d58b22e63de6" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"a\"}]}" } } }
  • 响应参数 状态码: 200 表14 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表15 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表16 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。
  • 请求示例 云上垃圾桶异常检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-trash-abnormal-detect-cloud/tasks { "name" : "trashabnormal-task", "description" : "trashabnormal task test", "input" : { "type" : "video_source", "data" : [ { "video_source_id" : "xxxxxxx-xxxxxxx-xxxxxxx-xxxxx-xxxxxx" } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "alert_time_threshold" : 30, "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]]},{\"data\":[[311,182],[282,670],[941,661],[835,170]]}]}", "image_compression_ratio" : 80 } } } 云上垃圾桶异常检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-trash-abnormal-detect-cloud/tasks { "name" : "trashabnormal-task", "description" : "trashabnormal task test", "input" : { "type" : "url", "data" : [ { "url" : "https://obs_test/test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "alert_time_threshold" : 30, "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]]},{\"data\":[[311,182],[282,670],[941,661],[835,170]]}]}", "image_compression_ratio" : 80 } } } 云上垃圾桶异常检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-trash-abnormal-detect-cloud/tasks { "name" : "trashabnormal-task", "description" : "trashabnormal task test", "input" : { "type" : "obs", "data" : [ { "bucket" : "obs_test_video", "path" : "test.mp4", "index" : 0 } ] }, "output" : { "dis" : { "stream_name" : "dis-test" } }, "service_version" : "3.0", "resource_order_id" : "840a5cf90d4a4bbaa71f251dfe8fe64e", "config" : { "common" : { "alert_time_threshold" : 30, "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[43,266],[42,645],[472,644],[416,212]]},{\"data\":[[311,182],[282,670],[941,661],[835,170]]}]}", "image_compression_ratio" : 80 } } }
共100000条