Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

Huawei AI Academy Training Materials

AI Development Platform for


Smart Devices

Huawei Technologies Co., Ltd.


Copyright © Huawei Technologies Co., Ltd. 2020. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without
prior written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their
respective holders.

Notice
The purchased products, services, and features are stipulated by the contract made between Huawei
and the customer. All or part of the products, services, and features described in this document may
not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all
statements, information, and recommendations in this document are provided "AS IS" without
warranties, guarantees, or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made
in the preparation of this document to ensure accuracy of the contents, but all statements,
information, and recommendations in this document do not constitute a warranty of any kind,
express, or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base Bantian, Longgang, Shenzhen 518129
Website: http://e.huawei.com
Huawei Open AI Platform for Smart Devices Page 1

Contents

7 AI Development Platform for Smart Devices ............................................................................. 2


7.1 HUAWEI HiAI Platform .......................................................................................................................................................... 2
7.1.1 Introduction ............................................................................................................................................................................ 2
7.1.2 Architecture ............................................................................................................................................................................. 3
7.1.3 HUAWEI HiAI Foundation .................................................................................................................................................. 5
7.1.4 HUAWEI HiAI Engine ........................................................................................................................................................... 7
7.1.5 HUAWEI HiAI Service .......................................................................................................................................................... 8
7.2 Developing Applications Based on HUAWEI HiAI Platform ..................................................................................... 8
7.3 HUAWEI HiAI: Some Solutions .......................................................................................................................................... 11
7.3.1 HUAWEI HiAI Helps Deaf and Mute Person ............................................................................................................. 11
7.3.2 HUAWEI HiAI Improves the Visual Experience of Yuanbei Driving Test ........................................................ 13
7.3.3 HUAWEI HiAI Enables Ctrip ............................................................................................................................................ 13
7.3.4 HUAWEI HiAI Enables WPS to Detect and Calibrate Document....................................................................... 14
7.4 Summary ................................................................................................................................................................................... 17
7.5 Quiz ............................................................................................................................................................................................. 18
Huawei Open AI Platform for Smart Devices Page 2

7 AI Development Platform for Smart


Devices

HUAWEI HiAI is an open AI capability platform for smart devices, which adopts a "chip-
device-cloud" architecture, opening up chip, application, and service capabilities for a fully
intelligent ecosystem. It assists developers in delivering a better smart application
experience for users, by fully leveraging Huawei's powerful AI processing capabilities.

7.1 HUAWEI HiAI Platform


7.1.1 Introduction
At present, consumers are exposed to a large number of AI applications, such as voice
assistant, AI photography, and image beautification. The application scenarios are limited.
In fact, with the evolution from device-side AI to distributed AI, resource and computing
power sharing among multiple devices will greatly expand application scenarios of device-
side AI, further enabling developers to achieve more smart innovations and bringing superb
experience to consumers.
Based on this background, Huawei launched HiAI 3.0. The evolution of the HiAI platform
has experienced the single-device scenario of version 1.0, multi-device scenario of version
2.0, and distributed scenario of version 3.0, as shown in Figure 7-1.
Huawei Open AI Platform for Smart Devices Page 3

Figure 7-1 HUAWEI HiAI evolution process


HUAWEI HiAI 3.0 was officially released at Software Green Alliance Developer Conference
on November 19, 2019, marking the leap from the device-side AI to the distributed AI.
HUAWEI HiAI 3.0 will bring an ultimate smart life experience across all scenarios.
HUAWEI HiAI 3.0 provides one-time service access and multi-device adaption experience.
Users can enjoy services, such as voice assistant and HiBoard on devices including the
mobile phones, tablets, smart screens, and smart speakers. The following are two examples
of personal training guidance and driving experience.
Case 1 exemplifies the personal training guidance. HUAWEI HiAI 3.0 provides the
distributed computer vision (CV) and automatic speech recognition (ASR) capabilities,
which can help person exercise at home and achieve the effect similar to that under
personal training guidance in the gym. The distributed CV can be used to identify key
elements of a human body in 3D. User can capture motion postures of multiple angles in
real time by using cameras at different locations, and correct the postures by using multiple
screens. With the open ASR capability, users can use the smart speaker to control the
movement pace through voice interaction and further assist consumers in personal training
at home.
Case 2 exemplifies the driving experience. As HUAWEI HiAI 3.0 is combined with distributed
technologies, users can connect a smartphone to their car, use the camera inside the car
to detect driving behavior, and use the AI chip computing power of the smartphone to
remind them of dangerous behaviors such as fatigue driving. All these can be performed
in an in-vehicle network environment. The lower-latency local data computing helps drivers
better protect themselves.
Huawei has more than 4,000 HiAI partners, more than 96 million daily active users, and
more than 600 billion monthly calls so far.

7.1.2 Architecture
The HUAWEI HiAI platform builds a three-layer ecosystem of cloud, device, and chip. It
supports various mainstream frontend frameworks on the cloud (Service) side. Various
upper-layer service APIs are provided on the device (Engine) side to ensure efficient running
on mobile devices. Heterogeneous resources can be flexibly scheduled on the chip
(Foundation) side, meeting developers' demand to accelerate neural network model
computing and operator computing. In addition, HUAWEI HiAI has a systematic tool chain,
comprehensive documents, various APIs, and source code that is easy to use, enabling quick
application development. Figure 7-2 shows the architecture of the HUAWEI HiAI mobile
computing platform.
Huawei Open AI Platform for Smart Devices Page 4

Figure 7-2 Architecture of the HiAI mobile computing platform

HiAI is an AI computing platform that is designed for mobile devices. Compared with
device-side AI and cloud-side AI, HiAI has three core advantages: higher security, cost
effective, and lower latency. HiAI builds a three-layer AI ecosystem: open service
capabilities, open application capabilities, and open chip capabilities. This three-layer open
platform utilizes features of the chips, devices, and clouds to deliver an extraordinary
experience to both users and developers. Figure 7-3 shows the features of each layer:
 Cloud: created once and reused multiple times.
 Device: distributed and all-scenario.
 Chip: stronger computing power, more operators and frameworks, and smaller
models.

Figure 7-3 HiAI three-layer AI ecosystem

HiAI can bring the following benefits to applications: real time, ready-to-use, stability,
security, and cost effective.
HUAWEI HiAI 3.0 features distributed AI enablement across all scenarios. HiAI has a three-
layer architecture: cloud, device, and chip. The sub-module corresponding to cloud is HiAI
Service, which is used to open service capabilities. HiAI Service pushes services to users
based on users' need so that the services can actively find the users. HiAI Service enables
users to create a service once and reuse it for multiple times. The sub-module
Huawei Open AI Platform for Smart Devices Page 5

corresponding to the device is HiAI Engine. It provides APIs to open AI application


capabilities. HiAI Engine can easily integrate multiple AI capabilities into applications,
making applications more intelligent and more powerful. HiAI Engine can be used to invoke
various algorithms in the HiAI platform and integrate them into applications. For example,
APIs in HiAI Engine can be directly invoked to implement image recognition, text
recognition,speech recognition, and natural language understanding. HiAI Engine can
implement the distributed and all-scenario usage. The chip is a batch of chips, which is
mainly based on Huawei's Kirin chips to open chip capabilities. HiAI Foundation, the sub-
module of HiAI corresponding to the chip, is responsible for providing operators to quickly
convert and migrate existing models, and achieving optimal performance through
heterogeneous scheduling and network processing unit (NPU) acceleration. The chip
provides more operators, stronger computing power, and more frameworks to streamline
the model. To migrate some locally developed AI applications to devices, you can use HiAI
Foundation to convert models to adapt to the devices.
The following introduces the three sub-modules in detail.

7.1.3 HUAWEI HiAI Foundation


HiAI Foundation APIs constitute an AI computing library of a mobile computing platform,
enabling developers to efficiently compile AI applications that can run on mobile devices.
The features are as follows:
By leveraging high performance and high precision of Kirin chips, better device-side AI
performance will be delivered by more powerful computing power.
They support the largest number of operators (over 300) in the industry and more
frameworks, greatly improving flexibility and compatibility.
The Honghu, Kirin, and AI camera chips enable AI capabilities for more devices.
HiAI Foundation APIs are released as a unified binary file. They accelerate the computing
of a neural network by using the HiAI heterogeneous computing platform. Currently, these
APIs can only run on a Kirin system on a chip (SoC).
With HiAI Foundation APIs, developers can focus on developing new AI applications
without paying attention to performance tuning for computing.
HiAI Foundation APIs are integrated with the Kirin SoC chip, providing a running
environment and debugging tool for mobile devices. Developers can run neural network
models on mobile devices and invoke the HiAI Foundation APIs to accelerate computing.
You can use the default images of mobile devices for integration, development, and
validation without installing the HiAI Foundation APIs.
HiAI Foundation APIs provide the following two major functions for AI application
developers:
 providing commonly used AI APIs, which can run efficiently on mobile devices.
 providing an acceleration API that is independent of the processor hardware. With
this API, application vendors and developers can accelerate model calculation and
operator calculation using the HiAI heterogeneous acceleration system.
HiAI Foundation APIs support the following basic functions:
 Supporting AI model management APIs, including model compilation, loading,
running, and destruction interfaces.
 Supporting basic operator calculation APIs, including convolution, pooling, and full-
connection interfaces.
Huawei Open AI Platform for Smart Devices Page 6

The HiAI Foundation supports dedicated AI instruction sets for neural network model
calculation, and can efficiently and concurrently execute more neural network operators
with a minimum clock cycle.
The HiAI Foundation can compile a variety of neural network operators, such as
convolution, pooling, activation, and full-connection operators, into dedicated AI
instruction sequences for the NPU in offline mode, with the data and weight rearranged.
The instructions and data are then combined together to generate an offline execution
model. Furthermore, during offline compilation, cross-layer operators can be fused
together (convolution, ReLU, and pooling), in order to reduce the read-write bandwidth of
the double data rate (DDR) and thus improve performance.
HiAI Foundation can rearrange related data (batch, channel, height, and width) of the
neural network model in the most efficient manner. In particular, for channel data of the
feature map, the channel-related calculation efficiency will be greatly improved during
convolution operations.
HiAI Foundation supports sparse model acceleration. The NPU can skip the multiply-add
algorithms with a coefficient of zero, which can greatly improve the calculation efficiency
and reduce the bandwidth while maintaining the calculation precision.
As shown in Figure 7-4, by using compilation tools, a trained neural network model is
converted into an offline model that can be efficiently executed on the HiAI Foundation,
and output as a binary file, that is, the offline model.

Figure 7-4 Neural network model complied into an offline model

Standard neural network models (such as Caffe) are compiled and converted into offline
models. The purpose of compilation is to optimize network configurations and generate
target files (that is, offline models) after the optimization. Offline models are serially stored
in disks. In this way, the neural network can directly use target files obtained after the
optimization for faster computing.
Figure 7-5 shows that during offline model calculation, the HiAI Foundation loads offline
models from files and copies the user input data (such as images) to the HiAI NPU for
calculation. User data only needs to be imported from the DDR to the NPU once for each
inference during calculation.
Huawei Open AI Platform for Smart Devices Page 7

Figure 7-5 Loading and calculating offline models

HUAWEI HiAI Foundation supports multiple intelligent platform frameworks, including


Caffe and TensorFlow. Third parties need to specify in the API the intelligent platform
framework required for computing. Other APIs and parameters do not need to be modified.
The HiAI Foundation also supports most models and neural network operators and will be
continuously optimized.

7.1.4 HUAWEI HiAI Engine


HiAI Engine opens application capabilities and integrates multiple AI capabilities into
applications, making applications smarter and more powerful. HiAI Engine 3.0 adds some
API identification capabilities, increasing the number of underlying APIs to more than 40.
It enables users to directly invoke existing APIs so that developers can focus on service
development. To implement functions such as image recognition and voice processing,
developers only need to place the integrated APIs in the application. In addition, in HiAI
3.0, APIs such as CV and voice recognition will be distributed, helping developers develop
more smart life experience across all scenarios.
The open application engines of HiAI include the CV engine, ASR engine, and natural
language understanding (NLU) engine. According to the survey results of developers' needs
for HiAI capabilities, more than 60% of the survey respondents focus on CV, ASR, and NLU.
CV engine simulates the way of human visual system to perceive the surrounding
environment and judge, identify, and understand its spatial composition. Its capabilities
include image super-resolution, facial recognition, and object recognition.
ASR engine converts human voices into text so that computers can further parse and
understand them. Its capabilities include speech recognition and speech conversion.
NLU engine is combined with the ASR engine to allow computers to understand human
voice or text, as well as to communicate or act naturally. Its capabilities include word
segmentation, textual entity recognition, sentiment bias analysis, and machine translation.
Table 7-1 describes the application scenarios and open engines of HUAWEI HiAI Engine.
For details about the APIs, see Appendix.

Table 7-1 HiAI application scenarios and open engines


Short Video and Photo Taking
Social Media AR Shopping
Live Streaming and Retouching
Gesture
recognition Beautification QR code scan
Portrait Image Direct service
Photo
segmentation Context enhancement delivery and
categorization
Posture awareness Aesthetics recommenda
Image
recognition Voice control scoring tion
recognition
Video style Depth Album ID card
Image super-
Voice control estimation generation recognition
resolution (SR)
Intelligent Light Photographing Bank card
Sensitive data
depth of field estimation by voice recognition
recognition
control Photographing Visual
Image scene by gesture shopping
recognition
Huawei Open AI Platform for Smart Devices Page 8

CV, ASR CV, NLU ASR, CV CV CV

7.1.5 HUAWEI HiAI Service


HiAI Service APIs enable developers to reuse services on multiple devices, such as mobile
phones, tablets, and large screens, with only one service access, efficiently implementing
distribution. HiAI Service APIs can recommend AI applications or services to users in a
timely manner so that users can quickly obtain required services. In addition, applications
can implement accurate diversion and connection for users. With the help of HiAI Service
APIs, each function or content in an application can be split into independent atomic
services for push. HiAI Service APIs support precise distribution in multiple scenarios and
entrances. HiAI Service APIs also recommend and display related applications based on
user habits, search content, and voice instructions at multiple entrances, such as HiBoard,
Global Search, HiVoice, HiTouch, and HiVison, contributing to more intelligent and precise
marketing of applications to users. HiAI Service APIs intelligently connect person and
services, implementing the experience upgrade from "person searching for services" to
"services searching for person".

7.2 Developing Applications Based on HUAWEI HiAI


Platform
HiAI also provides the integrated development environment (IDE) tool to quickly integrate
HiAI capabilities, helping developers quickly, conveniently, and efficiently use Huawei EMUI
open capabilities. The IDE is extended (provided as a plug-in) based on Android Studio
functions, supporting HiAI Engine and HiAI Foundation such as AI model analysis, AI model
conversion, service class generation, and AI model market. Drag-and-drop operations are
supported for quick and efficient integration. In addition, it provides free remote real device
services (more than 3000 AI real devices and 24/7 remote one-click system commissioning).
The IDE supports Android Studio 2.3.x and later versions, and the following operating
systems: Windows 7, Windows 10, and MacOS 10.12 or MacOS 10.13. If the operating
system does not meet the requirements, only the local AI model conversion function is
affected.
Related functions can be selected based on the actual scenario. For example, if you use the
EMUI AI APIs to develop an application, use HUAWEI HiAI Engine. To convert a TensorFlow
or Caffe model into a Huawei HiAI model and integrate the model into applications, use
HUAWEI HiAI Foundation. A common application can function as a service provider to use
HiAI Service.
HiAI is perfectly integrated with Android Studio, that is, HiAI can be used as a plug-in of
Android Studio, as shown in Figure 7-6.
Huawei Open AI Platform for Smart Devices Page 9

Figure 7-6 Integration of HiAI IDE and Android Studio 批注 [s(1]: 需更换为英文版界面图片

The HiAI platform plug-in provides the HiAI Engine and HiAI Foundation functions. HiAI
Engine provides APIs integrated with applications. It can be invoked directly. HiAI
Foundation integrates trained models, which can be downloaded and used directly, as
shown in Figure 7-7.
Huawei Open AI Platform for Smart Devices Page 10

Figure 7-7 HiAI functions integrated with Android Studio 批注 [s(2]: 需更换为英文版界面图片

When an application has been developed and entering the real device commissioning, full
series of convenient, efficient, and smooth remote debugging services are provided by
Huawei. Developers can access the real devices in Huawei remote terminal lab by one click
to perform real-time remote control and single-step commissioning. In addition, Huawei
also provides performance and log analysis. Figure 7-8 shows some of the supported
Huawei models.

Figure 7-8 Huawei models supported by HiAI 批注 [s(3]: 需更换为英文版图片

The procedure for integrating the HiAI deep learning development kit (DDK) is as follows:
Obtain the trained Caffe or TensorFlow model and use the offline model generator (OMG)
conversion tool to convert the original model of the open-source framework into the offline
Huawei Open AI Platform for Smart Devices Page 11

model (OM) suitable for the Da Vinci platform. The OM model can contain the 8-bit
quantization function. Finally, integrate applications, including model preprocessing and
model inference, as shown in Figure 7-9.
The procedure of application integration is as follows:

Step 1 Create a project

① In Android Studio, create a project. Make sure Include C++ support is selected.
② Select C++11 from the C++ Standard drop-down list box. Select Exceptions Support (-
fexceptions) and Runtime Type Information Support (-frtti).

Step 2 Compile Java Native Interface (JNI)

① Implement JNI and compile the Android.mk file.


② Compile the Application.mk file and copy the SDK .so files to the resource library.
③ Specify the NDK C++ Compilation File in the build.gradle file.

Step 3 Model Integration

① Model preprocessing: application-layer model preprocessing and JNI-layer model


preprocessing
② Model inference

Figure 7-9 HiAI DDK integration process

----End

7.3 HUAWEI HiAI: Some Solutions


7.3.1 HUAWEI HiAI Helps Deaf and Mute Person
Children with hearing disabilities cannot enjoy a good time because of physical obstacles.
They cannot hear the greetings from their families and friends, nor can they read the words
in the books. The world is silent and lonely to them. There are about 32 million deaf
Huawei Open AI Platform for Smart Devices Page 12

children around the world. They cannot hear the wonderful voice or verbally express their
ideas. The way they communicate with the world is full of challenges.
The reality is cruel that 90% of children with hearing disabilities have healthy parents, 78%
of whom are unable to communicate with children. For children who are severely or
profoundly deaf, learning and reading can be an overwhelming challenge.
Languages are learned by listening, speaking, reading, and writing. Listening is a key part
for language learning. When encountering a strange word, a normal child can understand
its meaning with their family's explanation, and master it by speaking the word
continuously. Children with hearing disabilities, however, can only learn languages through
sign language. Without the help of professional sign language teachers, they cannot
communicate with normal person.
To address this issue, Huawei developed StorySign in partnership with nonprofit European
Union of the Deaf, the publisher Penguin Random House and animation gurus Aardman.
With Huawei HiAI's open image recognition and Optical Character Recognition (OCR)
capabilities, animation effect can be displayed as soon as users hold their smartphones
over the words in the physical edition. Then the lovely avatar "Star" appears to translate
the text on the book into sign language, as shown in Figure 7-10.

Figure 7-10 HUAWEI HiAI displays texts with animation effect


Huawei Open AI Platform for Smart Devices Page 13

7.3.2 HUAWEI HiAI Improves the Visual Experience of Yuanbei


Driving Test
Yuanbei Driving Test is a driving test application tailored for beginners. It provides driving
test services in texts and images, including registering for a driving school, reserving a
driving test, and simulating a driving test. Yuanbei Driving Test is committed to building a
convenient and practical one-stop driving test platform.
The simulated driving test is one of the main features of the Yuanbei Driving Test. It
combines pictures, videos, and voices in the built-in installation package, which can help
users quickly get familiar with the test content and rules to pass the driving test.
The simulated exam questions contain a large number of pictures to assist users in exercises.
However, some low-quality images are not clear enough on common mobile phones,
affecting users' driving exercises.
On most devices, most image optimization programs for simulated driving tests rely on the
Internet. Therefore, when the network signal is weak or no network is available, the image
quality can be hardly improved.
HUAWEI HiAI adopts intelligent noise reduction and can enlarge the image resolution by
nine times to significantly improve the image quality, bring clearer image details to users,
and improve the visual experience.
Based on the device-side learning model of HUAWEI HiAI, the images on the device side
are optimized and zoomed in. The same images are displayed more clearly on Huawei NPU
models. In addition, it no longer depends on the network condition. Users can still view
high-quality large images when the network is unstable or disconnected, as shown in
Figure 7-11.

Figure 7-11 Huawei HiAI improves visual experience of Yuanbei Driving Test 批注 [s(4]: 需更换为英文版界面图片

7.3.3 HUAWEI HiAI Enables Ctrip


The Ctrip mobile client provides users with comprehensive travel services, including hotel
Huawei Open AI Platform for Smart Devices Page 14

reservation, flight ticket reservation, train ticket reservation, travel guides, preferential
tickets, and travel insurance.
During the journey, users often take many photos, hoping to capture beautiful scenery and
keep the pleasant time through cameras. However, it is difficult for most ordinary person
to accurately determine the quality of photos taken by themselves due to the lack of
professional photography knowledge. As a result, users cannot determine whether the
photos are good or not and whether the best effect is achieved. In addition, when the
photos taken by users are not clear and sharp enough and the display effect is poor, image
quality improvement becomes the requirement of many users.
By integrating the aesthetic rating capability of HUAWEI HiAI Engine, it can automatically
integrate technical factors such as out-of-focus and jitter as well as subjective aesthetics
such as skewness, color, and image composition to score images. Users can quickly
understand the image quality based on the scores and adjust the image quality accordingly
to get the most beautiful scenery.
In addition, with the help of the HUAWEI HiAI, the application can be woken up by voice
and make poems with just one click, as shown in Figure 7-12.

Figure 7-12 HUAWEI HiAI enables Ctrip to make poems with one click 批注 [s(5]: 需更换为英文版图片

7.3.4 HUAWEI HiAI Enables WPS to Detect and Calibrate


Document
WPS is an office software application that allows users to edit and view common office
documents, such as texts, tables, and presentations. WPS also provides users with free cloud
Huawei Open AI Platform for Smart Devices Page 15

space and document templates.


With the emergence and development of mobile terminals, mobile phones are more and
more used for office work such as editing documents and sending and receiving emails.
However, without a keyboard or mouse, users can only operate by tapping and dragging
the phone screen with their finger, which makes working with mobile phone extremely
inefficient. For example, when attending a class, meeting, or training session and need to
record useful information on PowerPoint slides, person often take out our phone and take
a photo. However, images captured usually have some problems and must be exported to
a computer and processed before being made into a PowerPoint document, which can be
very time-consuming. The problems are as follows:
 Interference of other objects: In addition to content on the PowerPoint slides, other
objects such as the screen, walls, desks, and chairs may also be captured in the
image, so the image must be tailored before being used.
 Document deformation: If the image is not captured right in front of the slides, the
document on the image may be distorted in different degrees. A stretched or
compressed image will affect subsequent use.
 Blurred image: Limited by factors such as light and distance, the image captured may
be blurred, affecting perception and information recognition.
Uneditable content: Many users may need to edit the content on the PowerPoint slides
when viewing the images captured but the image content cannot be directly edited.
With access to HUAWEI HiAI and enhanced by the remarkable performance of Huawei
Kirin 970, WPS needs only three seconds to generate a PowerPoint file based on multiple
images with one touch, solving all the preceding problems.
 Document sensing to automatically identify the useful area: After integrating the
document detection and calibration ability of HiAI Engine, WPS can accurately
identify the area where the document is and automatically crop other objects
including the screen, walls, desks, and chairs, as shown in Figure 7-13.

Figure 7-13 WPS document sensing and automatic identification

 Document calibration to quickly adjust the shooting angle to the center of view: This
is an enhanced auxiliary function for document rephotographing. It can
automatically adjust the shooting angle to the right front of the document, allowing
a maximum adjustment range of 45 degrees, as shown in Figure 7-14.
Huawei Open AI Platform for Smart Devices Page 16

Figure 7-14 WPS document calibration 批注 [s(6]: 需更换为英文版图片

 Document super-resolution to make texts on the document clearer: HUAWEI HiAI


amplifies the images that contain text content nine times (three times in the height
and width respectively) the resolution to make the images clearer so that text
recognition will be easier, as shown in Figure 7-15.

Figure 7-15 WPS text super-resolution

 Access to OCR to edit the image content: By integrating OCR, WPS can automatically
recognize and extract the text in images so that users can modify, cut, copy, or
delete texts in the PowerPoint, as shown in Figure 7-16.
Huawei Open AI Platform for Smart Devices Page 17

Figure 7-16 WPS OCR recognition 批注 [s(7]: 需更换为英文版界面图片

For more solutions, visit the official HiAI website:


https://developer.huawei.com/consumer/en/hiai

7.4 Summary
This chapter describes the three-layer architecture of the HUAWEI HiAI platform: HUAWEI
HiAI Foundation, HUAWEI HiAI Engine and HUAWEI HiAI Service APIs so that service
capability openness, application capability openness, and chip capability openness can be
implemented. These related capabilities and some HiAI solutions are also introduced in this
chapter.
Last but not least, HUAWEI HiAI has carried out the following events to fully connect
developers, encourage innovation, and achieve win-win ecosystem.
 Offline connection for in-depth communication:
① salon city station
② HiAI open courses
③ special technical conferences
 1 billion investment, stimulating innovations in all scenarios:
① openness and innovation of device capabilities
② all-scenario digital service innovation
③ cloud service ecosystem co-construction
 Innovation competitions for continuous development:
① AI Application Innovation Contest
② Future Application Creative Contest
③ AR Application Innovation Contest
Huawei Open AI Platform for Smart Devices Page 18

Huawei believes that AI can make life better by bringing unprecedented convenience for
both back end and devices. However, this requires actual application scenarios that allow
more enterprises and developers to play a part in improving user experience substantially.
Huawei is willing to work with partners to jointly promote intelligent transformation of
industries with more developers and enterprises based on the HiAI 3.0 platform.

7.5 Quiz
1. HUAWEI HiAI 3.0 was officially released at Software Green Alliance Developer
Conference on November 19, 2019, marking the leap from the device-side AI to the
distributed AI, which will bring ultimate smart life experience across all scenarios. What
is the three-layer AI ecosystem of HUAWEI HiAI?
2. Which layer can convert a standard neural network model into an offline model?
3. Which layer can easily integrate multiple AI capabilities into applications to make
applications more intelligent and powerful?
4. HiAI aims to help developers quickly, conveniently, and efficiently use Huawei EMUI
open capabilities. Which tool can be integrated with HiAI?
5. What is the procedure of application integration?

You might also like