# HW-ML-demo
**Repository Path**: iForkOpenSource/hw-ml-demo
## Basic Information
- **Project Name**: HW-ML-demo
- **Description**: 华为ml demo
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2023-11-21
- **Last Updated**: 2025-06-03
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# HUAWEI ML Kit
## Table of Contents
* [Introduction](#introduction)
* [Getting Started](#Getting Started)
* [Supported Environments](#supported-environments)
* [Result](#result)
* [License](#license)
## Introduction
The sample code describes how to use the HMS Core ML SDK.
face: Sample code of face detection.
skeleton: Sample code for bone recognition.
handkeypoint: Sample code of gesture key points.
imgseg: Sample code of image segmentation.
scene dect: Scenario Identification Sample Code.
Liveness Dect: Liveness Detection Sample Code.
object: Sample code of object detection and tracking.
landmark: Sample code of landmark recognition.
classification: Sample code of image classification.
image Super: Sample code for image overcommitment.
text image super: Text Overcommitment Sample Code.
text: Sample code of text recognition.
document: Sample code of document recognition.
IDCard: Sample code of ID card recognition.
generalCard: Sample code of general card recognition.
bankCard: Sample code of bank card recognition.
translate: Sample code of text translation.
tts: Sample code of text to speech.
asr: Sample code of automatic speech recognition.
aft: Sample code of audio file transcription.
sound dect: Voice Recognition Sample Code.
custom model: Custom Model Sample Code.
text Embedding: Text Embedding Sample Code.
realtime trans: Sample code of the long voice.
documentskewcorrection: Document Correction Sample Code.
FormRecognition: Example code of table recognition.
camera: Sample code of lensEngine.
## Getting Started
### 1. Register as a developer.
Before you get started, you must register as a HUAWEI developer and complete identity verification on [HUAWEI Developers](https://developer.huawei.com/consumer/en/). For details, please refer to [Registration and Verification](https://developer.huawei.com/consumer/en/doc/start/10104).
### 2. Create an app and apply for a agconnect-services.json.
Create an app and set package type to APK (android app). Apply for the agconnect-services.json file on HUAWEI Developers. For details, please refer to [Adding the AppGallery Connect Configuration File.](https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/ml-add-agc).
### 3. Replacing api_key.
Copy the api_key in the agconnect-services.json and assign the value to the apiKey constant in ChooseActivity.
### 4. Build
To build this sample, import the sample to Android Studio (3.x +), download agconnect-services.json from AppGallery Connect, and add the file to the app's root directory app of the demo app.
### 5. Run the sample on your Android device or emulator.
## Supported Environments
Devices with Android 4.4 or later are recommended.
##Result
## License
The sample of HUAWEI ML Kit has obtained the [Apache 2.0 license.](https://www.apache.org/licenses/LICENSE-2.0).