Updated on 2023-03-27 GMT+08:00

Skill Overview

A skill can be abstractly understood as "algorithm model + logic code". The algorithm model handles AI inference, and the logic code handles inference result processing.

This section describes how to use empty templates and basic skill templates to develop skills on the Huawei HiLens console.

Skill

A skill is an AI application ready to run on a camera or another computing device. It consists of a model and logic code. The logic code is the skill's framework that governs how the skill behaves, including data reading, model import, model inference, and result output. The model is an AI algorithm trained using big data and handles inference while the skill is running.

The Skill Market of Huawei HiLens provides extensive skills for users.

  • The application scenarios for HiLens skills include smart campus, smart home, smart vehicle-mounted terminals, smart shopping mall, and more.
  • Skills are classified into two types by device: skills for Ascend chips and skills for HiSilicon Hi35xx series chips.
    Figure 1 Skill card

Skill Development Overview

Skills are classified into two types based on the chip types: skills used on HiLens Kit devices and skills used on devices that run HiSilicon Hi35xx series chips. The HiLens platform supports quick, convenient, and efficient skill development using skill templates. It also allows you to develop models and logic code without using templates, meeting your personalized requirements in more scenarios.

Skills that run on HiSilicon Hi35xx series chips require a large chip memory and high performance. You need to optimize the skill models. If you want to develop skills of this type, contact the support team of the Huawei HiLens platform.

Figure 2 Skill development

Developing New Skills on the Console

Before creating a skill, determine its type. Different skills have different models and logic code, but their creation process is the same.

Developing skills on the Huawei HiLens console may occupy OBS resources and incur fees. For details about OBS pricing, see Product Pricing Details.

For details about the skill creation process, see Figure 2.

  • Using basic skill templates: Ensure that there are available basic skill templates on the platform.
  • Using empty templates: To develop a skill using an empty template, you need to develop its model and logic code. If your model format does not meet our requirements, the Huawei HiLens platform will convert the model format during model import.
Figure 3 Skill development
Table 1 Common operations for creating a skill

Category

Common Operation

Quick Link

Using a skill template

Obtain a skill template.

Obtaining Skill Templates

Create a skill using the basic skill template.

Creating Skills

Using an empty template

Develop a model.

Developing an Algorithm Model

Import (convert) the model.

Importing (Converting) Models

Compile the logic code.

Writing the Code

Create a skill using the empty template.

Creating Skills

Related Operations

On the Huawei HiLens platform, you cannot only develop skills, but also manage your developed skills. The detailed operations are as follows.

Table 2 Skill Related Operations

Operation

Description

Creating Skills

After determining the type of the skill to be developed, create the skill according to Developing New Skills on the Console.

Editing Skills

After a skill is created, you can edit and modify the skill, including its basic information, content, and runtime configurations.

Installing and Debugging Skills

After a skill is created, you can deploy it to devices, view the skill videos to check its effects, and debug it repeatedly.

Deleting Skills

You can delete skills that are no longer used to release resources.