Abstract: Combined with the HUAWEI CLOUD API open platform API Exploer to implement a photo classification system.
What can API bring us?

With API, you can create and manage cloud servers, cloud containers, and cloud hard drives to improve work efficiency; you can access image recognition, sentiment analysis, content review, and other capabilities. If you don’t understand AI, you can still play with various AI skills; you can also quickly implement video Mature application capabilities such as on-demand and dialogue robots...

However, the domestic API ecosystem is still in the initial stage of development. Many excellent APIs are still a legacy from the sea. Many companies often repeat development because they do not understand that there are ready-to-use APIs in their innovation.

In the era of API economy, in order to let everyone better understand the API and its applications, this "Internet +" contest started from actual problems and launched related competition questions-combined with the HUAWEI CLOUD API open platform API Exploer to implement a photo classification system.

This article starts with the introduction, description and requirements of the competition questions, combing through the steps and key ideas of the questions, as well as the guidelines and examples for the use of related development tools. I hope that this question answering strategy can help the majority of contestants achieve good results.

Competition question introduction: Use API to solve real-world problems

A typical Chinese family consists of 4 elderly people, 2 adults, and 1 child (4+2+1), and each has a mobile phone. They use mobile phones to take a lot of photos in daily life, work and study. These photos are basically Stored in their respective mobile phones, and then shared through social apps such as WeChat, Weibo, and Douyin. But this will have many problems, such as inconvenience for batch sharing, insufficient local storage space on the phone, and so on.

The purpose of this contest is to use HUAWEI CLOUD related APIs, such as image recognition capabilities, to intelligently classify photos. After classification, they can be stored in the cloud. Users can also set privacy for photos without sharing. Contestants can view the learning-related cloud service APIs on the API Explorer platform to complete the competition questions. The final form of the work is not limited, it can be mobile applications, applets, cloud services, web, desktop applications, etc.

Interpretation of competition questions: clarify the three-step thinking and use the right development tools

Before interpreting the competition questions, let’s take a look at Huawei Cloud’s API Explorer platform. API Explorer is a unified platform that provides developers with one-stop API solutions. It integrates all open APIs of Huawei Cloud services and supports full fast retrieval and visualization. Debugging, help documentation, code examples, mocks and other capabilities help developers quickly find and learn APIs and use APIs to develop code. There are currently 17 categories, 100+ product services, and 3800+ open APIs.
image.png

The core of this contest question is to use HUAWEI CLOUD's API capabilities to realize application development. Let's further analyze the question description, which is mainly divided into four steps:

  • Centrally backup the mobile phone photos of multiple family members to the cloud;
  • Intelligent classification of photos through image recognition capabilities;
  • After classification, it is stored in the cloud and can be shared with family members through large screens and other terminals;
  • You can set privacy tags so that pictures cannot be shared.

Among them, we have extracted a few keywords: image recognition, image classification, and image storage. In fact, the processing of images has also been the focus of AI technology research in recent years. From this perspective, this question is not just about API. Application, as well as technical capabilities related to computer vision.

To sum up, if contestants want to use APIs to build applications that meet their requirements, they can refer to the following idea:

1. Access and operate the image data in cloud storage by calling the API interface of OBS;
2. Tag the pictures by calling the API interface of picture recognition;
3. By calling the API interface of ModelArts, the pictures are further classified, and private pictures are identified and removed.

Among the mentioned Huawei Cloud products are: OBS, image recognition, and ModelArts.

OBS is a cloud storage service with a standard Restful API interface that can store any amount and form of unstructured data.

ModelArts is a one-stop AI development platform for developers, providing massive data preprocessing, intelligent annotation, large-scale distributed training, automated model generation, and end-side-cloud model on-demand deployment capabilities to help users quickly create and deploy models , Manage the full-cycle AI workflow.

The capabilities of these products have been "packaged" into open API interfaces, which players can view, learn and use in API Explorer. In addition, contestants can quickly develop applications (APP/small programs/Web, etc.) through DevStar/DevCloud.

Among them, DevStar provides different types of 80+ general framework templates such as Web, App, and microservices. Players do not need to develop applications from scratch. DevCloud is a one-stop cloud software development platform that can deliver the full life cycle of software in the cloud at any time, covering demand issuance, code submission, code inspection, code compilation, verification, deployment, and release.

Below, we will focus on the use of API Explorer, the main product of this competition, and related cases.

API Explorer User Guide

From HUAWEI CLOUD official website-Developer-Resource Tools, you can enter the API Explorer page, which includes all API information open by HUAWEI CLOUD. Players can quickly view and search API documents on this platform, as well as visual debugging APIs. The specific key capabilities are shown in the figure below.
image.png

First, supports online retrieval and visual debugging can locate related cloud services and quickly query all open APIs under cloud services. Going back to this competition question, the contestant searches for "ModeIArts" in the API Explorer, and you can see the API documentation of the model deployment in the interface.

More detailed information can be obtained through API documentation, including interface constraints, request parameter descriptions, examples, return parameters, and SDK. After selecting the API, you can directly perform online debugging by filling in the parameters, and view the return result of the API call.

If the calling interface returns an error code, you can quickly find the corresponding detailed error information and suggestions for handling measures in the error code center to quickly solve the problem of the API call.

When you are familiar with API functions and need to use code to call the API, you can view SDK code examples through API Explorer. It supports seven mainstream development languages such as Java, Python, and Go. By introducing the corresponding language SDK, you can quickly call the API in the application. , And all SDK code has been open sourced through GitHub. At the same time, API Explorer also provides other features such as on-cloud/off-cloud CLI, API Mock, and scenario examples, which are convenient for developers to use.

For some API application cases, you can refer to the cloud sharing topic of the Huawei Cloud Community: ] Issue 7: 20 ultra-practical API application cases, opening the way to API advancement (data download attached).

What kind of work is easy to get high scores?

The aforementioned HUAWEI CLOUD products can all improve the efficiency of your development and application, but the final result depends on the players' understanding and mastery of the technology, the innovation of problem-solving ideas, the completion of the project, and so on.

From the perspective of the scoring dimension of the competition, the innovation of the work, technical realization and delivery, commerciality, and the division of labor of the team are all very important.

Take innovation as an example, including the accuracy of image classification algorithms, API design calls, etc.; in terms of teams, the division of labor and collaboration must be clear, and the organizational structure and staffing must be reasonable. The technical route of the project is clear and clear, and the technical tools are mature and reliable. In addition, a well-designed and feasible business model is more likely to get a high score.

Finally, I would like to remind you again of the schedule of this "Internet +" competition: the deadline for registration and submission of works is August 31, and the preliminary semi-finals are due on September 30. The national finals are expected to be held in mid-to-late October. Participants, hurry up and feel the charm of API with the code in your hands. Click to enter the contest page for more information.

Click to follow, and get to know the fresh technology of Huawei Cloud for the first time~


华为云开发者联盟
1.4k 声望1.8k 粉丝

生于云,长于云,让开发者成为决定性力量