Obtaining Task Results
After a task is executed, obtain the task result based on the output path set during task creation.
If Output Mode is set to Event Center, obtain the task result in Event Center. For details, see Event Overview.
To obtain the task result when the output mode is DIS or Webhook, follow the steps in this chapter.
Step 1 Obtain the Task Output Path
After a task is executed, click the task name on the task list page and obtain the task output path in the Configure Output tab.
- Obtain the DIS channel for DIS output mode.
- Obtain the webhook URL for webhook output mode.
Step 2 Obtain the Task Result
View the task result in the obtained output path.
DIS
- Log in to the DIS console.
- Click the obtained DIS stream, and check whether any incoming stream is generated.
- Obtain the result data through a DIS dump task. For details, see Creating a Dump Task.
Webhook
The service uses a POST request to send the task result, including structured data and images, as data streams in JSON format to the specified webhook URL.
As an example, the script in Starting a Webhook Service saves the webhook message that it receives in the post.txt file, which is in the same folder as the script.
Take the intrusion detection algorithm as an example. The following is an example of the JSON result output by the algorithm, indicating that an intrusion is detected in a specified area in the video.
{ "event_type":196609, "timestamp":1581753322, "stream_id":"44000000581314000234#15#9f63890660f24175871c861b345e852d", "message_id":"849D1326-4FC8-11EA-8F73-0242AC110004", "image_base64":"/9j/4AAQSkZJRgA...", "task_id":"63eac48bf3704e8bb30af7f244fdcf3d", "data":{ "event_set":[ { "start_position":"in", "end_position":"in", "bounding_box":{ "y":327, "h":216, "x":876, "w":105 }, "category":0, "detection_id":"83BFC020-4FC8-11EA-9F93-0242AC110004" } ] } }
Field |
Description |
---|---|
task_id |
Task ID. |
data |
Recognition result output by the task. |
bounding_box |
Rectangle for the alarm object.
|
detection_id |
UUID of the alarm object. |
category |
Category of the alarm object. The value can be:
|
start_position |
Start position of the intrusion.
|
end_position |
End position of the intrusion.
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot