Abstract: It integrates Huawei Cloud API Open platform API Exploer to realize photo classification system.
This article is shared from huawei Cloud community “Internet +” COMPETITION API problem Strategy: Clarify the three-step problem solving ideas, use good development tools “, author: technology torchbearer.
What can the API do for us?
With the API, you can create and manage cloud servers, cloud containers, cloud disks, improve work efficiency; Can access image recognition, sentiment analysis, content review and other capabilities, do not understand AI still play with a variety of AI skills; Can also quickly achieve video on demand, dialogue robots and other mature applications……
However, the DOMESTIC API ecology is still in the early stage of development, many excellent apis are still a drop in the ocean, and many enterprises often carry out repeated development in innovation because they do not know the available APIS.
In the ERA of API economy, in order to give you a better understanding of API and its application, this “Internet +” contest launched from the practical problems, the relevant contest question – Combined with Huawei Cloud API open platform API Exploer to achieve photo classification system.
This paper starts from the introduction, description and requirements of the competition, combing the problem solving steps and key ideas, as well as the relevant development tools use guidelines and examples. Hope this competition problem solution strategy, can help the majority of contestants to achieve good results.
Problem introduction: Using API to solve real world problems
A typical Chinese family including four old man, two adults and one child (4 + 2 + 1), a mobile phone, and hand them in daily life and work and study will be a lot of photographs taken using a mobile phone, these photos are stored in their respective basic handset, then through WeChat, weibo, trill social APP to share. But there will be many problems, such as inconvenient batch sharing, mobile phone local storage space is insufficient, and so on.
This competition aims to use Huawei Cloud related APIS, such as image recognition ability to intelligently classify photos. After the classification, users can centrally store the photos in the cloud. Users can also set the privacy of photos and do not share them. Participants will be able to complete the quiz by viewing and learning related cloud service apis on the API Explorer platform. The final product form is not limited, can be mobile application, small program, cloud service, Web, desktop application, etc.
Competition problem interpretation: clarify the three-step thinking, with the development tool
API Explorer is a unified platform for developers to provide one-stop API solutions. It integrates all open apis of Huawei Cloud services. Support for full quick retrieval, visual debugging, help documentation, code samples, mocks, and more to help developers quickly find, learn, and develop code using apis. At present, there are 17 categories, 100+ products and services, 3800+ open apis.
The core of this question is to realize the application development with the help of HUAWEI Cloud’S API capability. The following is a further analysis of the question description, which is divided into four steps:
-
Backup photos of multiple family members to the cloud in a centralized way;
-
Intelligent classification of photos by image recognition ability;
-
After classification, it can be centrally stored in the cloud and shared with family members through terminals such as large screen.
-
You can set a privacy tag to make the images unshareable.
Among them, we extracted several keywords: image recognition, image classification, image storage, in fact, the processing of images is also the focus of AI technology research in recent years, from this point of view, this contest test is not only the application of API, and computer vision related technical ability.
To summarize, if you want to use the API to build an application that meets your requirements, here’s what you can do:
-
1. Access and operate the picture data in the cloud storage by calling OBS API interface;
-
2. Label the picture by calling the API interface of picture recognition;
-
3. Further classify the pictures by calling the API interface of ModelArts, and identify and remove the pictures with privacy.
The mentioned Huawei cloud products include OBS, Image Recognition and ModelArts.
OBS is a cloud storage service that provides standard Restful apis and can store any amount or form of unstructured data.
ModelArts is a one-stop AI development platform for developers. It provides massive data preprocessing, intelligent labeling, large-scale distributed training, automated model generation and on-demand deployment of end-edge-cloud models to help users quickly create and deploy models and manage full-cycle AI workflow.
The capabilities of these products have been “packaged” into open apis that players can view, learn, and use in the API Explorer. In addition, contestants can quickly develop applications (APP/ applet /Web, etc.) through DevStar/DevCloud.
Among them, DevStar provides 80+ generic framework templates for different types of Web, App, microservice, etc. Contestants do not need to develop applications from scratch. DevCloud is a one-stop platform for software development in the cloud. The entire lifecycle of software delivery can be delivered in the cloud at any time, covering requirement delivery, code submission, code review, code compilation, validation, deployment, and release.
Below, we will focus on the main products of the competition API Explorer use methods and related cases.
API Explorer Usage Guide
From huawei Cloud official website — Developer — Resource Tool, you can enter the API Explorer page, which includes all the API information of Huawei Cloud. On this platform, contestants can quickly view and search API documents, as well as visually debug APIS. The specific key capabilities are shown in the following figure.
Firstly, it supports online retrieval and visual debugging of open apis, which can locate related cloud services and quickly query all open apis under cloud services. Going back to this contest, you can search for “ModeIArts” in THE API Explorer and see the API documentation for model deployment.
The API documentation provides more detailed information, including interface constraints, request parameter descriptions, examples, return parameters, and very complete information about the SDK. After selecting an API, you can set parameters to perform online debugging and view the results of API calls.
If the calling interface returns an error code, you can quickly find the detailed error information and handling suggestions in the error code center to quickly resolve the API call problem.
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, which 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 program. And all the SDK code is open source via GitHub. The API Explorer also provides other cloud-on-cloud/cloud-off-cloud CLI, API Mocks, and scenario examples for developers to use.
For some application cases of API, you can refer to huawei Cloud Community cloud enjoy topic: [Technical Supply Station] issue 7:20 super practical API application cases, open the ROAD to API advanced (attached materials download).
What kind of work is easy to get high marks?
Huawei cloud products mentioned above can improve the efficiency of application development, but the final results will depend on the players’ understanding of technology, innovation of problem-solving ideas, completion of the project and so on.
Innovation, technical implementation and delivery, commerciality and team allocation are all important in the scoring dimensions of the competition.
Take innovation as an example, including the accuracy of image classification algorithm, API design calls and so on; As for the team, the division of labor and cooperation should be clear, and the organizational structure and personnel allocation should 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 viable business model is more likely to score high.
Finally, I would like to remind you of the schedule of this “Internet +” competition: the registration and submission time is up to August 31, the preliminary and final competition is up to September 30, and the national final is expected to be held in mid-late October. Participants, quickly with the hands of the code API feel the charm of it. Click on the contest page for more information.
Click follow to learn about the fresh technologies of Huawei Cloud