Updated on 2024-02-29 GMT+08:00

Creating a Task

Context

You can create a video analysis task to use an algorithm service to analyze and process a specified video source.

Task management allows you to create video analysis tasks, view task details and list, and delete tasks.

There are two ways to create a task:
  • Choose Task Center > Task List and click Add Task.
  • Choose Video Center > Video Sources and click Add Task in the Operation column of the target video source.

Prerequisites

Procedure

  1. Log in to the VIAS console.
  2. Choose Task Center > Task List and click Add Task.
    1. Set parameters according to Table 1.
      Table 1 Basic task parameters

      Parameter

      Description

      Example

      Task Name

      Enter a task name containing 1 to 100 characters.

      Only letters, digits, hyphens (-), and underscores (_) are allowed.

      Intrusion detection

      Type

      Select Cloud or Edge.

      N/A

      Video Sources

      Select a video source to be analyzed from the drop-down list.

      Campus camera A

      Visual Capability Package

      Select a purchased algorithm package.

      Common cloud algorithm package

      Order ID

      Select the order ID of the algorithm package from the drop-down list.

      This parameter is only displayed for commercial algorithm packages.

      cd80eef0611843ad99eee3b833xxxxxx

      Algorithm Services

      Select the algorithm to be used.

      Intrusion detection (cloud)

      Service Version

      Select a function version.

      1.0

    2. After the algorithm service and service version are selected, the ROI configuration and common parameters of the algorithm are displayed.
      • ROI: For details about ROI configuration, see Configuring the ROI. Some algorithms do not require ROI configuration.
      • Common Parameters: The parameters vary depending on the algorithm service version. For details about the parameters, see API Overview
      • Common Configuration Templates: You can save a common configuration template. After the template is saved, the current algorithm configuration will be used when you select the algorithm for video analysis next time.
  3. Click Next to set the task execution plan.
    Table 2 Basic task parameters

    Parameter

    Description

    Always

    The task starts immediately and runs continuously.

    Periodic

    You can choose this option to schedule the task by adjusting a chart. Each time slot on the chart is at least 15 minutes long.

  4. Click Next to select a mode for storing task results.

    The options are OBS, DIS, Webhook, and Event Center.

    Table 3 Task output parameters

    Output Mode

    Configure Output

    Description

    Example

    OBS

    File path

    Select an OBS folder or path to store the task result. You must enable OBS beforehand. For details about how to enable OBS, see Getting Started with OBS.

    N/A

    DIS

    Channel

    Enter a channel for outputting the task result. You must create a DIS stream before using it here. For details, see Creating a DIS Stream.

    N/A

    Webhook

    URL

    Enter your webhook service URL starting with http://, https://, rtsp://, rtmp://, ftp://, or file:// with a maximum of 1000 characters.

    The task result can be directly sent to the webhook URL through a POST request. For details about how to start a webhook service, see Starting a Webhook Service.

    http://10.10.10.1:6006

    Header

    Add at least one and at most ten headers.

    Click to add more.

    content-type; application/json

    Event Center

    Result output service provided by the platform. For details, see Event List.

    N/A

  5. After you finish the configuration, click OK.

    You will see the Task List page, where you can check the status and basic information of your task.

    After a task is created, you can click Edit in the Operation column to modify its name, video source, and common parameters.