هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

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
Managed Threat Detection
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
On this page

Show all

Video Collector

Updated on 2022-02-22 GMT+08:00

This API is used to construct a video collector to open the HiLens Kit camera, construct an IP camera video collector (for the IP cameras that use the RTSP protocol), or construct a UV camera video collector (for the cameras that comply with the USB video class specifications). Currently, the HiLens Kit has two USB ports, but only one USB camera can be connected.

After the firmware is upgraded to 1.0.7 or later, this API can be used to read local MP4 files and set the width and height of the video frames read from the IP camera or local MP4 files.

  • API calling

    hilens.VideoCapture(camera)

    1.0.7 and later firmware versions:

    hilens.VideoCapture(camera, width, height)

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Type

    Description

    camera

    No

    • Character string
    • Integer 0
    • If no parameter is entered, a video collector is constructed to open the HiLens Kit camera. Only one skill of a device can use the camera. Otherwise, resource preemption will occur, causing an error.
    • If the camera name in the device configuration file is entered, an IP camera video collector is constructed. The camera name in the device configuration file is preferentially used. You can also enter a stream obtaining address in the format of rtsp://xxx.

      To view the camera name, log in to the Huawei HiLens console and choose Device Management > HiLens Kit > Camera Configuration > Camera Management.

    • If the integer 0 is entered, a UV camera video collector is constructed (the UV camera needs to be inserted).
    • If the path of the local MP4 video file is entered, an MP4 video collector is constructed.

    width

    No. This parameter must be used together with height.

    Integer

    Set the width of the read video frame image. The value must be a multiple of 16. The recommended value is a multiple of 32. The minimum value is 128. This parameter can be set only for IP cameras and MP4 video files.

    If you do not set this parameter, the original width and height of the video frame are used by default.

    height

    No. This parameter must be used together with width.

    Integer

    Set the height of the read video frame image. The value must be a multiple of 2. The minimum value is 128. This parameter can be set only for IP cameras and MP4 video files.

    If you do not set this parameter, the original width and height of the video frame are used by default.

  • Return value
    • Video collector with a camera.
    • IP camera video collector
    • UV camera video collector
    • MP4 video collector
    • If the construction fails, "CreateError" is reported. You can view skill logs.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback