หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Obtaining Task Results

Updated on 2024-11-12 GMT+08:00

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

  1. Log in to the DIS console.
  2. Click the obtained DIS stream, and check whether any incoming stream is generated.
  3. 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"
            }
        ]
    }
}

Table 1 JSON result fields

Field

Description

task_id

Task ID.

data

Recognition result output by the task.

bounding_box

Rectangle for the alarm object.

  • x: horizontal coordinate of the upper-left corner of a bounding box
  • y: vertical coordinate of the upper-left corner of a bounding box
  • w: width of a bounding box
  • h: height of a bounding box

detection_id

UUID of the alarm object.

category

Category of the alarm object. The value can be:
  • 0: person
  • 1: vehicle
  • 2: other

start_position

Start position of the intrusion.

  • For an intrusion against a line, the value is the name of the side from where the object enters.
  • For an intrusion into a region, the value is in or out.
    • in: The intrusion starts inside the region.
    • out: The intrusion starts outside the region.

end_position

End position of the intrusion.

  • For an intrusion across a line, the value is the name of the side where the object arrives.
  • For an intrusion into a region, the value is in or out.
    • in: The intrusion ends inside the region.
    • out: The intrusion ends outside the region.

เราใช้คุกกี้เพื่อปรับปรุงไซต์และประสบการณ์การใช้ของคุณ การเรียกดูเว็บไซต์ของเราต่อแสดงว่าคุณยอมรับนโยบายคุกกี้ของเรา เรียนรู้เพิ่มเติม

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback