HMS AIRTOUCH Android sample code encapsulates APIs of the HUAWEI ML Kit and Ads Kit. It provides many sample programs for your reference or usage.
The following describes packages of Android sample code.
Ads : Sample code of Banner Ads.
common : Common components and utils.
Login : Sample code of Eye Blink using ML-Face detection
Text-To-Speech : Sample Code of ASR
Rating the Application : Sample Code of ML Hand Keypoint Detection
Scrolling the Applcation : Sample Code of AR Engine.
Android SDK Version >= 21 and JDK version >= 1.8 is recommended.
Before running the app, you need to:
-
If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification.
-
Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
-
Enable the API permission for below kits from Project Setting > Manage APIs and enable the API permission. ML Kit
Ads Kit -
Download the agconnect-services.json file from AppGallery Connect and replace place it in the application-level root directory. Before compiling the APK, please make sure that the project includes the agconnect-services.json file, otherwise a compilation error will occur.
See details: Automatic Speech Recognition Hand Keypoint Detection Face Detection AR Engine
HMS AirTouch sample is licensed under the: Apache License, version 2.0.