华为云用户手册

  • 响应参数 状态码: 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,输出为webhook。 POST /v2/{project_id}/services/c-smoke-and-fire-edge/tasks { "name" : "fireandsmoke-detection-task", "description" : "fireandsmoke 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" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "video_sampling_interval" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1, "fire_detection_sw" : 1, "smoke_detection_sw" : 1 } } } 边缘烟火检测作业创建,使用输入源为vcn,输出为dis。 POST /v2/{project_id}/services/c-smoke-and-fire-edge/tasks { "name" : "fireandsmoke-detection-task", "description" : "fireandsmoke 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" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "video_sampling_interval" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1, "fire_detection_sw" : 1, "smoke_detection_sw" : 1 } } } 边缘烟火检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-smoke-and-fire-edge/tasks { "name" : "fireandsmoke-detection-task", "description" : "fireandsmoke 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" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "video_sampling_interval" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1, "fire_detection_sw" : 1, "smoke_detection_sw" : 1 } } } 边缘烟火检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-smoke-and-fire-edge/tasks { "name" : "fireandsmoke-detection-task", "description" : "fireandsmoke 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" : { "image_compression_ratio" : 90, "render_result_sw" : 1, "video_sampling_interval" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1, "fire_detection_sw" : 1, "smoke_detection_sw" : 1 } } }
  • 请求示例 云上骑电动车未戴头盔识别作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-helmet-elec-recog-cloud/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } } 云上骑电动车未戴头盔识别作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-helmet-elec-recog-cloud/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } } 云上骑电动车未戴头盔识别作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-helmet-elec-recog-cloud/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } }
  • 响应参数 状态码: 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-sharedbicycledetection-cloud/tasks { "name" : "shared-bicycle-detection-task", "description" : "shared-bicycle 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" : { "alert_mode" : "single", "alert_detection_interval" : 60, "illegal_park_alert_threshold" : 30, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"illegal01\"}]}", "image_compression_ratio" : 90 } } } 云上共享单车检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-sharedbicycledetection-cloud/tasks { "name" : "shared-bicycle-detection-task", "description" : "shared-bicycle 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" : { "alert_mode" : "single", "alert_detection_interval" : 60, "illegal_park_alert_threshold" : 30, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"illegal01\"}]}", "image_compression_ratio" : 90 } } } 云上共享单车检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-sharedbicycledetection-cloud/tasks { "name" : "shared-bicycle-detection-task", "description" : "shared-bicycle 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" : { "alert_mode" : "single", "alert_detection_interval" : 60, "illegal_park_alert_threshold" : 30, "render_result_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]],\"name\":\"illegal01\"}]}", "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-staffonduty-edge/tasks { "name" : "staffonduty-task", "description" : "staffonduty 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\":[[484,465],[1850,450],[1905,1013],[515,1050]]}, {\"data\":[[484,125],[1800,125],[1800,677],[495,677]]}]}", "image_compression_ratio" : 90, "key_region_detection_sw" : 1, "key_region_detect_interval" : 2, "key_region_detect_threshold" : 2, "key_region_person_count" : 50 } } } 边缘关键岗位检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-staffonduty-edge/tasks { "name" : "staffonduty-task", "description" : "staffonduty 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\":[[484,465],[1850,450],[1905,1013],[515,1050]]}, {\"data\":[[484,125],[1800,125],[1800,677],[495,677]]}]}", "image_compression_ratio" : 90, "key_region_detection_sw" : 1, "key_region_detect_interval" : 2, "key_region_detect_threshold" : 2, "key_region_person_count" : 50 } } } 边缘关键岗位检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-staffonduty-edge/tasks { "name" : "staffonduty-task", "description" : "staffonduty 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" : { "target_roi" : "{\"polygons\":[{\"data\":[[484,465],[1850,450],[1905,1013],[515,1050]]}, {\"data\":[[484,125],[1800,125],[1800,677],[495,677]]}]}", "image_compression_ratio" : 90, "key_region_detection_sw" : 1, "key_region_detect_interval" : 2, "key_region_detect_threshold" : 2, "key_region_person_count" : 50 } } } 边缘关键岗位检测作业创建,使用输入源为VCN,输出为dis POST /v2/{project_id}/services/c-staffonduty-edge/tasks { "name" : "staffonduty-task", "description" : "staffonduty 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" : { "target_roi" : "{\"polygons\":[{\"data\":[[484,465],[1850,450],[1905,1013],[515,1050]]}, {\"data\":[[484,125],[1800,125],[1800,677],[495,677]]}]}", "image_compression_ratio" : 90, "key_region_detection_sw" : 1, "key_region_detect_interval" : 2, "key_region_detect_threshold" : 2, "key_region_person_count" : 50 } } }
  • 响应参数 状态码: 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-helmet-elec-recog-edge/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } } 边缘骑电动车未戴头盔识别作业创建,使用输入源为vcn,输出为dis。 POST /v2/{project_id}/services/c-helmet-elec-recog-edge/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } } 边缘骑电动车未戴头盔识别作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-helmet-elec-recog-edge/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } } 边缘骑电动车未戴头盔识别作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-helmet-elec-recog-edge/tasks { "name" : "helmet-task", "description" : "helmet 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]]}]}" } } }
  • 响应参数 状态码: 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 表15 响应Body参数 参数 参数类型 描述 tasks Array of TaskResponse objects VIAS平台创建作业的作业id列表 表16 TaskResponse 参数 参数类型 描述 id String VIAS平台创建的作业id。 状态码: 400 表17 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误信息描述。 detail String 错误详情。 params Array of strings 错误参数列举。 数组长度:0 - 1 reason String 错误原因。 advice String 建议。 状态码: 500 表18 响应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-traffic-abnormal-park-edge/tasks { "name" : "abnormalpark-task", "description" : "abnormalpark 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" : { "target_roi" : "{\"polygons\":[{\"data\":[[50,756],[50,756],[50,756],[100,616]],\"name\":\"a\"},{\"data\":[[50,256],[50,756],[50,756],[100,116]],\"name\":\"b\"}]}", "license_plate" : { "local_city" : "B", "local_province" : "津" }, "abnormal_park_threshold" : 180, "abnormal_park_output_interval" : 180, "output_image_sw" : 1, "render_result_sw" : 1, "render_roi_sw" : 1, "event_disappear_alert_sw" : 0, "image_compression_ratio" : 100 } } } 边缘异常停车作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-traffic-abnormal-park-edge/tasks { "name" : "abnormalpark-task", "description" : "abnormalpark 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" : { "target_roi" : "{\"polygons\":[{\"data\":[[50,756],[50,756],[50,756],[100,616]],\"name\":\"a\"},{\"data\":[[50,256],[50,756],[50,756],[100,116]],\"name\":\"b\"}]}", "license_plate" : { "local_city" : "B", "local_province" : "津" }, "abnormal_park_threshold" : 180, "abnormal_park_output_interval" : 180, "output_image_sw" : 1, "render_result_sw" : 1, "render_roi_sw" : 1, "event_disappear_alert_sw" : 0, "image_compression_ratio" : 100 } } } 边缘异常停车作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-traffic-abnormal-park-edge/tasks { "name" : "abnormalpark-task", "description" : "abnormalpark 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" : { "target_roi" : "{\"polygons\":[{\"data\":[[50,756],[50,756],[50,756],[100,616]],\"name\":\"a\"},{\"data\":[[50,256],[50,756],[50,756],[100,116]],\"name\":\"b\"}]}", "license_plate" : { "local_city" : "B", "local_province" : "津" }, "abnormal_park_threshold" : 180, "abnormal_park_output_interval" : 180, "output_image_sw" : 1, "render_result_sw" : 1, "render_roi_sw" : 1, "event_disappear_alert_sw" : 0, "image_compression_ratio" : 100 } } } 边缘异常停车作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-traffic-abnormal-park-edge/tasks { "name" : "abnormalpark-task", "description" : "abnormalpark 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" : { "target_roi" : "{\"polygons\":[{\"data\":[[50,756],[50,756],[50,756],[100,616]],\"name\":\"a\"},{\"data\":[[50,256],[50,756],[50,756],[100,116]],\"name\":\"b\"}]}", "license_plate" : { "local_city" : "B", "local_province" : "津" }, "abnormal_park_threshold" : 180, "abnormal_park_output_interval" : 180, "output_image_sw" : 1, "render_result_sw" : 1, "render_roi_sw" : 1, "event_disappear_alert_sw" : 0, "image_compression_ratio" : 100 } } }
  • 请求示例 云上戴口罩检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-wear-mask-recog-cloud/tasks { "name" : "wearmask-task", "description" : "wearmask 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" : { "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "image_compression_ratio" : 90 } } } 云上戴口罩检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-wear-mask-recog-cloud/tasks { "name" : "wearmask-task", "description" : "wearmask 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" : { "render_result_sw" : 1, "render_roi_sw" : 1, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}", "image_compression_ratio" : 90 } } } 云上戴口罩检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-wear-mask-recog-cloud/tasks { "name" : "wearmask-task", "description" : "wearmask 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" : { "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 建议。
  • 响应参数 状态码: 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/cali-water-ruler-river-cloud/tasks { "name" : "water-ruler-task", "description" : "water-ruler 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" : { "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 } } } 云上河道标定水尺识别作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/cali-water-ruler-river-cloud/tasks { "name" : "water-ruler-task", "description" : "water-ruler 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" : { "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 } } } 云上河道标定水尺识别作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/cali-water-ruler-river-cloud/tasks { "name" : "water-ruler-task", "description" : "water-ruler 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" : { "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 } } }
  • 请求示例 边缘排口排水识别作业创建,使用输入源为video_source,输出为webhook。 POST /v2/{project_id}/services/drainage-recognition-edge/tasks { "name" : "drainage-task", "description" : "drainage 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" : { "render_result_sw" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } } 边缘排口排水识别作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/drainage-recognition-edge/tasks { "name" : "drainage-task", "description" : "drainage 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" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } } 边缘排口排水识别作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/drainage-recognition-edge/tasks { "name" : "drainage-task", "description" : "drainage 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" : { "render_result_sw" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } } 边缘排口排水识别作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/drainage-recognition-edge/tasks { "name" : "drainage-task", "description" : "drainage 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" : { "render_result_sw" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } }
  • 响应参数 状态码: 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/drainage-recognition-cloud/tasks { "name" : "drainage-task", "description" : "drainage 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" : { "render_result_sw" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } } 云上排口排水识别作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/drainage-recognition-cloud/tasks { "name" : "drainage-task", "description" : "drainage 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" : { "render_result_sw" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } } 云上排口排水识别作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/drainage-recognition-cloud/tasks { "name" : "drainage-task", "description" : "drainage 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" : { "render_result_sw" : 0, "alarm_repeat_send_interval" : 5, "image_compression_ratio" : 90, "target_roi" : "{\"polygons\":[{\"data\":[[0,0],[0,1080],[1920,1080],[1920,0]]}]}" } } }
  • 响应参数 状态码: 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-highpoint-crowdcount-cloud/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "alarm_threshold" : "5", "sampling_time_interval" : 8, "visualization_output_sw" : 1, "image_compression_ratio" : 80, "alert_mode" : "single", "target_roi" : "{\"polygons\":[{\"data\":[[100,100],[1800,100],[1800,1000],[100,1000]]}]}" } } } 云上高点人群统计作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-highpoint-crowdcount-cloud/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "alarm_threshold" : "5", "sampling_time_interval" : 8, "visualization_output_sw" : 1, "image_compression_ratio" : 80, "alert_mode" : "single", "target_roi" : "{\"polygons\":[{\"data\":[[100,100],[1800,100],[1800,1000],[100,1000]]}]}" } } } 云上高点人群统计作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-highpoint-crowdcount-cloud/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "alarm_threshold" : "5", "sampling_time_interval" : 8, "visualization_output_sw" : 1, "image_compression_ratio" : 80, "alert_mode" : "single", "target_roi" : "{\"polygons\":[{\"data\":[[100,100],[1800,100],[1800,1000],[100,1000]]}]}" } } }
  • 响应参数 状态码: 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-intrusiondetection-cloud/tasks { "name" : "intrusiondetection-task", "description" : "intrusiondetection 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" : { "car_detection_sw" : 0, "person_detection_sw" : 1, "detection_min_size" : 60, "detection_max_size" : 1080, "line_detection_sw" : 1, "region_detection_sw" : 1, "loitering_detection_sw" : 0, "loitering_send_interval" : 300, "image_compression_ratio" : 90, "render_result_sw" : 1, "all_print_sw" : 0, "render_roi_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]]}]}" } } } 云上入侵检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-intrusiondetection-cloud/tasks { "name" : "intrusiondetection-task", "description" : "intrusiondetection 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" : { "car_detection_sw" : 0, "person_detection_sw" : 1, "detection_min_size" : 60, "detection_max_size" : 1080, "line_detection_sw" : 1, "region_detection_sw" : 1, "loitering_detection_sw" : 0, "loitering_send_interval" : 300, "image_compression_ratio" : 90, "render_result_sw" : 1, "all_print_sw" : 0, "render_roi_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]]}]}" } } } 云上入侵检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-intrusiondetection-cloud/tasks { "name" : "intrusiondetection-task", "description" : "intrusiondetection 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" : { "car_detection_sw" : 0, "person_detection_sw" : 1, "detection_min_size" : 60, "detection_max_size" : 1080, "line_detection_sw" : 1, "region_detection_sw" : 1, "loitering_detection_sw" : 0, "loitering_send_interval" : 300, "image_compression_ratio" : 90, "render_result_sw" : 1, "all_print_sw" : 0, "render_roi_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]]}]}" } } }
  • 响应参数 状态码: 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-drying-edge/tasks { "name" : "drying-detect-task", "description" : "drying 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-drying-edge/tasks { "name" : "drying-detect-task", "description" : "drying 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-drying-edge/tasks { "name" : "drying-detect-task", "description" : "drying 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-drying-edge/tasks { "name" : "drying-detect-task", "description" : "drying 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 建议。
  • 响应参数 状态码: 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-abandon-detection-cloud/tasks { "name" : "abandon-detection-task", "description" : "Abandon 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" : { "detection_min_size" : 50, "alert_time_threshold" : 10, "alert_detection_interval" : 5, "image_compression_ratio" : 80, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "render_result_sw" : 1, "render_roi_sw" : 1 } } } 云上遗留物检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-abandon-detection-cloud/tasks { "name" : "abandon-detection-task", "description" : "Abandon 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" : { "detection_min_size" : 50, "alert_time_threshold" : 10, "alert_detection_interval" : 5, "image_compression_ratio" : 80, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "render_result_sw" : 1, "render_roi_sw" : 1 } } } 云上遗留物检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-abandon-detection-cloud/tasks { "name" : "abandon-detection-task", "description" : "Abandon 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" : { "detection_min_size" : 50, "alert_time_threshold" : 10, "alert_detection_interval" : 5, "image_compression_ratio" : 80, "target_roi" : "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "render_result_sw" : 1, "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 建议。
共100000条