A guide to help kids learn numbers!
Learning Numbers app is designed to help kids learn basic counting and arithmetic skills in a fun and interactive way by Huawei ML Kit. Using the latest technology, our app allows kids to generate a random image or choose one from their own gallery. Then, using Huawei Object Detection, the app can detect the number of items in the image.
Next, it's up to the kids to count the items and tell us how many there are using their microphone. Our Huawei ASR (automatic speech recognition) feature will then listen to their answer and give us the result as well. We compare the result from Huawei object detection with the answer given by the child to see how well they did.
Not only is this app a fun and engaging way for kids to learn about counting, but it also best guide for check results
ML Kit allows your apps to easily leverage Huawei's long-term proven expertise in machine learning to support diverse artificial intelligence (AI) applications throughout a wide range of industries. Thanks to Huawei's technology accumulation, ML Kit provides diversified leading machine learning capabilities that are easy to use, helping you develop various AI apps. More..
Automatic speech recognition (ASR) can recognize speech not longer than 60s and convert the input speech into text in real time. This service uses industry-leading deep learning technologies to achieve a recognition accuracy of over 95%.
The object detection and tracking service can detect and track multiple objects in an image, so they can be located and classified in real time. A maximum of eight objects can be detected and tracked concurrently
- JDK version: 1.8.211 or later
- Android Studio version: 3.X or later
- minSdkVersion: 19 or later (mandatory)
- targetSdkVersion: 30 (recommended)
- compileSdkVersion: 30 (recommended)
- Gradle version: 4.6 or later (recommended)
- Test device: a Huawei phone running EMUI 5.0 or later, or a non-Huawei phone running
- HMS Core (APK) 5.0.0.300 or later
- Register a developer account on HUAWEI Developers and configure.
- Register in to Huawei Developer Console and Create and configure an app
- To use ML Kit, you need to enable it in AppGallery Connect. For details, please refer to Enabling Services.
- Adding the AppGallery Connect Configuration File of Your App - Sign in to AppGallery Connect and click My projects. - Find your project and click the app for which you want to integrate the HMS Core SDK. - On the Project Setting page, set SHA-256 certificate fingerprint to the SHA-256 fingerprint you've generated. - Go to Project settings > General information. In the App information area, download the agconnect-services.json file.
- Configuring the Maven Repository Address for the HMS Core SDK
- Open the build.gradle file in the root directory of your Android Studio project.
- Add the AppGallery Connect plugin and the Maven repository.
buildscript {
repositories {
google()
jcenter()
// Configure the Maven repository address for the HMS Core SDK.
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
...
// Add the AppGallery Connect plugin configuration. You are advised to use the latest plugin version.
classpath 'com.huawei.agconnect:agcp:1.7.1.300'
}
}
allprojects {
repositories {
google()
jcenter()
// Configure the Maven repository address for the HMS Core SDK.
maven {url 'https://developer.huawei.com/repo/'}
}
}
Adding Build Dependencies (app build gradle)
implementation "com.huawei.agconnect:agconnect-core:$1.7.1.300"
// Import the base SDK.
implementation 'com.huawei.hms:ml-computer-vision-object:3.7.0.301'
// Import the object detection and tracking model package.
implementation 'com.huawei.hms:ml-computer-vision-object-detection-model:3.7.0.301'
// Speech to text
implementation "com.huawei.hms:ml-computer-voice-asr-plugin:3.7.0.301"
Permissions ( AndroidManifest.xml )
<!--use mic-->
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<!--get image from gallery-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<!--for services-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
The resources used in the development of the project are as follows: