视频智能分析服务 VIAS-创建云上高点人群统计作业:请求示例

时间:2024-04-19 18:20:04

请求示例

  • 云上高点人群统计作业创建,使用输入源为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]]}]}"
        }
      }
    }
support.huaweicloud.com/vias-api/CreateHighpointCrowdcountTasksCloud.html