检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
You can choose Import From OBS or Import From ModelArts.. Importing a model from OBS Click Import From OBS, select the bucket and folder where the custom model is stored on OBS, and click OK.
You can configure the target OBS bucket on the HiLens console. For details, see the "Configuring the Data Storage Location" section in HiLens User Guide.
= 0: hilens.error("Failed to download from obs") return # Create a folder in the skill workspace directory and decompress it.
= 0: hilens.error("Failed to download from obs") return # Create a folder in the skill workspace directory and decompress it.
Method 2: Compress and upload multiple models and code to OBS in advance. Select Upload from OBS for Code Entry Mode. In this case, the path of the model file is the relative path of the model relative to the file where the code is located.
Method 2: Compress and upload multiple models and code to OBS in advance. Select Upload from OBS for Code Entry Mode. In this case, the path of the model file is the relative path of the model relative to the file where the code is located.
For successful model data access, ensure that the created OBS bucket and Huawei HiLens are in the same region. Operations that occupy OBS resources are billed. For details about the billing rules, see OBS Pricing Details.
Upload From OBS You can develop complex project code offline, manually generate a .zip or .tar.gz package, upload it to OBS, and select the .zip or .tar.gz package from OBS here.
Resource Management Module Obtaining Model Paths Obtaining the Directories of the Skill Workspaces Obtaining Skill Configurations Downloading a File from OBS Calculating the MD5 Values of Files Example - Resource Management
Resource Management Module Obtaining Model Paths Obtaining the Directories of the Skill Workspaces Obtaining Skill Configurations Downloading a File from OBS Calculating the MD5 Values of Files Example - Resource Management
How Do I Configure the Data Storage Location (OBS Storage Path)? Why Does HDMI Black Screen Occur or HDMI Output Stop Working? Can I Record the Images Captured by a HiLens Kit Camera or the Skill Running Result for Storage? Why Don't the Logs Contain Any Device Data?
Developing skills on the Huawei HiLens console may occupy OBS resources and incur fees. For details about the OBS pricing, see Product Pricing Details. You have searched and obtained the skill template that meets your service response requirements on the Skill Templates page.
Therefore, you need to obtain the permissions of related services before using Huawei HiLens, including ModelArts, Object Storage Service (OBS), and Software Repository for Container (SWR).
API Calling HiLensEC hilens::DownloadFileFromOBS(const std::string & url, const std::string & downloadTo) Parameter Description Table 1 Parameters Parameter Description url The URL of the OBS resource you want to download.
hilens.upload_buffer_to_obs("test4", "1234", "append") # Upload images to OBS using the data in the buffer. # Convert the images to the BGR format.
hilens.upload_buffer_to_obs("test4", "1234", "append") # Upload images to OBS using the data in the buffer. # Convert the images to the BGR format.
Select Upload from OBS for Code Entry Mode. For details, see Creating Skills > Setting the Skill Content. Parent topic: Developing Skills
Select the device logs you want to upload to OBS and click OK. Wait for log collection. The system will collect the device logs you selected. This typically takes 5 minutes.
= hilens::OK) { hilens::Error("Failed to download from obs"); } // Create a folder in the skill workspace directory and decompress the downloaded file.
GET hilens:market:downloadSkill obs:object:GetObject Create a skill order in the skill market. POST hilens:market:createSkillOrder - Install a skill purchased from the skill market. POST hilens:market:installSkill - Remove a released skill from the catalog of the skill market.