华为云用户手册

  • 请求示例 边缘高点超速检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-highpoint-overspeed-edge/tasks { "name" : "highpoint-overspeed-task", "description" : "highpoint-overspeed 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\":[[268,361],[386,556],[539, 506],[364,332]]},{\"data\":[[474,689],[758,1070],[1183,1070],[668,627]]}]}", "camera_calibration" : "[75.318722,63.472760,3372.332762,-20.421955,0.031882]", "speed_threshold" : 40, "render_result_sw" : 1, "render_roi_sw" : 1, "image_compression_ratio" : 100 } } } 边缘高点超速检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-highpoint-overspeed-edge/tasks { "name" : "highpoint-overspeed-task", "description" : "highpoint-overspeed 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\":[[268,361],[386,556],[539, 506],[364,332]]},{\"data\":[[474,689],[758,1070],[1183,1070],[668,627]]}]}", "camera_calibration" : "[75.318722,63.472760,3372.332762,-20.421955,0.031882]", "speed_threshold" : 40, "render_result_sw" : 1, "render_roi_sw" : 1, "image_compression_ratio" : 100 } } } 边缘高点超速检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-highpoint-overspeed-edge/tasks { "name" : "highpoint-overspeed-task", "description" : "highpoint-overspeed 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\":[[268,361],[386,556],[539, 506],[364,332]]},{\"data\":[[474,689],[758,1070],[1183,1070],[668,627]]}]}", "camera_calibration" : "[75.318722,63.472760,3372.332762,-20.421955,0.031882]", "speed_threshold" : 40, "render_result_sw" : 1, "render_roi_sw" : 1, "image_compression_ratio" : 100 } } } 边缘高点超速检测作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-highpoint-overspeed-edge/tasks { "name" : "highpoint-overspeed-task", "description" : "highpoint-overspeed 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\":[[268,361],[386,556],[539, 506],[364,332]]},{\"data\":[[474,689],[758,1070],[1183,1070],[668,627]]}]}", "camera_calibration" : "[75.318722,63.472760,3372.332762,-20.421955,0.031882]", "speed_threshold" : 40, "render_result_sw" : 1, "render_roi_sw" : 1, "image_compression_ratio" : 100 } } }
  • 请求示例 边缘高点人群统计作业创建,使用输入源为video_source,输出为webhook。 POST /v2/{project_id}/services/c-highpoint-crowdcount-edge/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "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]]}]}" } } } 边缘高点人群统计作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-highpoint-crowdcount-edge/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "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]]}]}" } } } 边缘高点人群统计作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-highpoint-crowdcount-edge/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "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]]}]}" } } } 边缘高点人群统计作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-highpoint-crowdcount-edge/tasks { "name" : "highpoint-crowdcount-task", "description" : "highpoint-crowdcount 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" : { "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-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 建议。
  • 响应参数 状态码: 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]]}]}" } } }
  • 请求示例 云上骑电动车未戴头盔识别作业创建,使用输入源为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-flowcount-edge/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 } } } 人流量作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-flowcount-edge/tasks { "name" : "flowcount-task", "description" : "flowcount 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" : { "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 } } } 人流量作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-flowcount-edge/tasks { "name" : "flowcount-task", "description" : "flowcount 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" : { "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]]}]}xyf", "heatmap_detection_sw" : 0, "heatmap_detection_interval" : 60, "heatmap_point_interval" : 4 } } } 创建边缘人流量服务作业,使用输入源为vcn,输出为dis。 POST /v2/{project_id}/services/c-flowcount-edge/tasks { "name" : "flowcount-task", "description" : "flowcount 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" : { "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 建议。
  • 请求示例 人流量作业创建,使用输入源为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 建议。
  • 请求示例 边缘漂浮物检测作业创建,使用输入源为video_source,输出为webhook。 POST /v2/{project_id}/services/floating-edge/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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/floating-edge/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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/floating-edge/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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/floating-edge/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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/floating-cloud/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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/floating-cloud/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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/floating-cloud/tasks { "name" : "floating-task", "description" : "floating 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" : { "night_detection_sw" : 1, "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 表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 建议。
  • 请求示例 边缘消防通道占用检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-fire-exit-occupation-edge/tasks { "name" : "fireexit-task", "description" : "fireexit 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" : { "event_disappear_alert_sw" : 0, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [1920, 0]]}]}" } } } 边缘消防通道占用检测作业创建,使用输入源为VCN,输出为dis。 POST /v2/{project_id}/services/c-fire-exit-occupation-edge/tasks { "name" : "fireexit-task", "description" : "fireexit 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" : { "event_disappear_alert_sw" : 0, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [1920, 0]]}]}" } } } 边缘消防通道占用检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-fire-exit-occupation-edge/tasks { "name" : "fireexit-task", "description" : "fireexit 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" : { "event_disappear_alert_sw" : 0, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [1920, 0]]}]}" } } } 边缘消防通道占用检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-fire-exit-occupation-edge/tasks { "name" : "fireexit-task", "description" : "fireexit 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" : { "event_disappear_alert_sw" : 0, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [1920, 0]]}]}" } } }
  • 请求示例 云上消防通道占用检测作业创建,使用输入源为video_source,输出为dis。 POST /v2/{project_id}/services/c-fire-exit-occupation-cloud/tasks { "name" : "fireexit-task", "description" : "fireexit 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, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [1920, 0]]}]}" } } } 云上消防通道占用检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-fire-exit-occupation-cloud/tasks { "name" : "fireexit-task", "description" : "fireexit 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, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [1920, 0]]}]}" } } } 云上消防通道占用检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-fire-exit-occupation-cloud/tasks { "name" : "fireexit-task", "description" : "fireexit 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, "image_compression_ratio" : 90, "render_roi_sw" : 1, "render_result_sw" : 1, "stacking_occupation_sw" : 1, "vehicle_occupation_sw" : 1, "stacking_residence_time" : 40, "vehicle_residence_time" : 50, "target_roi" : "{\"polygons\":[{\"data\":[[0, 0], [0, 1000], [1920, 1000], [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,输出为webhook。 POST /v2/{project_id}/services/c-fightdetect-edge/tasks { "name" : "fight-detection-task", "description" : "fight 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, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1 } } } 边缘打架检测作业创建,使用输入源为vcn,输出为dis。 POST /v2/{project_id}/services/c-fightdetect-edge/tasks { "name" : "fight-detection-task", "description" : "fight 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, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1 } } } 边缘打架检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-fightdetect-edge/tasks { "name" : "fight-detection-task", "description" : "fight 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, "target_roi" : "{\"polygons\":[{\"data\":[[204,64],[90,321],[511,319],[617,221],[582,38],[320,11],[228,24]]}]}", "render_roi_sw" : 1 } } } 边缘打架检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-fightdetect-edge/tasks { "name" : "fight-detection-task", "description" : "fight 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, "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 建议。
  • 请求示例 云上打架检测作业创建,使用输入源为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 建议。
  • 请求示例 边缘个体事件行为检测作业创建,使用输入源为video_source,输出为webhook。 POST /v2/{project_id}/services/c-event-action-recog-edge/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_sw" : 1 } } } 边缘个体事件行为检测作业创建,使用输入源为vcn,输出为dis。 POST /v2/{project_id}/services/c-event-action-recog-edge/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_sw" : 1 } } } 边缘个体事件行为检测作业创建,使用输入源为边缘摄像头,输出为dis。 POST /v2/{project_id}/services/c-event-action-recog-edge/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_sw" : 1 } } } 边缘个体事件行为检测作业创建,使用输入源为restful,输出为webhook。 POST /v2/{project_id}/services/c-event-action-recog-edge/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_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-event-action-recog-cloud/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_sw" : 1 } } } 云上个体事件行为检测作业创建,使用输入源为url,输出为dis。 POST /v2/{project_id}/services/c-event-action-recog-cloud/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_sw" : 1 } } } 云上个体事件行为检测作业创建,使用输入源为obs,输出为dis。 POST /v2/{project_id}/services/c-event-action-recog-cloud/tasks { "name": "event-action-detection-task", "description": "event-action 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": { "smoking_detection_sw": 1, "phoning_detection_sw": 0, "render_result_sw": 1, "render_roi_sw": 1, "target_roi": "{\"polygons\":[{\"data\":[[84,389],[1840,349],[1824,526],[78,526]]}]}", "image_compression_ratio": 90, "suspected_output_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 建议。
  • 响应参数 状态码: 201 表4 响应Body参数 参数 参数类型 描述 id String 创建出的边缘池ID 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息描述 detail String 错误详情 params Array of strings 错误参数列举 reason String 错误原因 advice String 建议 状态码: 500 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息描述 detail String 错误详情 params Array of strings 错误参数列举 reason String 错误原因 advice String 建议
共100000条