# MLKit-Sample
English | [中文](https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/README_ZH.md)
## Table of Contents
* [Introduction](#introduction)
* [Project directory structure](#Project-directory-structure)
* [More Scenarios](#more-scenarios)
* [Getting Started](#getting-started)
* [Supported Environment](#supported-environment)
* [License](#license)
## Introduction
Sample code demoing features of the [ML Kit](https://developer.huawei.com/consumer/en/doc/development/hiai-Guides/service-introduction-0000001050040017) and split into modules:
### Text module (`module-text`)
**Features:** text recognition, document recognition, ID card recognition, bank card recognition, general card recognition, text translation, language detection, real-time speech recognition, speech synthesis, audio file conversion, voice recognition, text embedding, and real-time speech translation.
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/main_text.png" width=220 title="main page" border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/language.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/localLanguage.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/asr.jpg" width=220 border=2></td>
</tr></table>
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/tts.png" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/tts_offline.gif" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/aft.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/text.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/bcr.jpg" width=220 border=2></td>
</tr></table>
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/sound.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/text_emd.gif" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/bcr.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/asr_long.jpg" width=220 border=2></td>
</tr></table>
### Vision module (`module-vision`)
**Features:** image segmentation, image classification, object detection and tracking, landmark recognition, image super-resolution, text image super-resolution, scene detection, table/form recognition, and document skew correction.
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/main_vision.png" width=220 title="main page" border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/table.gif" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/imageSegmentVideo.gif" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/object.jpg" width=220 title="main page" border=2></td>
</tr></table>
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/image_super.jpg" width=220 title="main page" border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/scene.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/doc_skew.gif" width=220 border=2></td>
</tr></table>
### Body module (`module-body`)
**Features:** face detection, skeleton detection, liveness detection, hand key points detection, 3D face detection, face comparison, and hand gesture recognition.
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/body_module.png" width=220 title="main page" border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/face.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/skeleton.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/handkey.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/gesture.png" width=220 border=2></td>
</tr></table>
### Custom Model Module (`module-custom`)
**Features:** use customized models for label and object detection.
<table><tr>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/main_custom.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/label_custom.jpg" width=220 border=2></td>
<td><img src="https://github.com/HMS-Core/hms-ml-demo/blob/master/MLKit-Sample/resources/object_custom.jpg" width=220 border=2></td>
</tr></table>
## Project directory structure
`module-text`
|-- com.huawei.mlkit.sample
|-- Activity
|-- AsrActivity //Real-time speech recognition entry
|-- AsrAudioActivity //Automatic Speech Recognition
|-- TtsAnalyseActivity //Text to speech entry
|-- AudioFileTranscriptionActivity //Audio File Transcription
|-- IDCardRecognitionActivity // ID card recognition
|-- BankCardRecognitionActivity // Bank card recognition
|-- GeneralCardRecognitionActivity // General card recognition
|-- TextRecognitionActivity // Text recognition
|-- RemoteDetectionActivity // Document recognition
|-- StartActivity // Service entry
|-- BaseActivity // Activity base class
|-- SettingActivity // moduletext Basic Information
|-- TranslateActivity // Translation entry
|-- LocalTranslateActivity // LocalTranslation
|-- RemoteTranslateActivity // RemoteTranslation
|-- SoundDectActivity // Voice recognition
|-- TextEmbeddingActivity // Text Embedding
`module-vision`
|-- com.huawei.mlkit.sample
|-- Activity
|-- ImageSegmentationActivity //Image Segmentation
|-- LoadPhotoActivity //Image Segmentation Related
|-- TakePhotoActivity //Background Change Related
|-- StillCutPhotoActivity //Capture Image Related
|-- ObjectDetectionActivity //Object detection and tracking
|-- ImageClassificationActivity //Image classification
|-- RemoteDetectionActivity //Landmark recognition
|-- ImageSuperResolutionStartActivity // image super resolution entry
|-- ImageSuperResolutionActivity // image super resolution
|-- TextImageSuperResolutionActivity // text image super resolution
|-- SceneStartActivity // Scene Dection entry
|-- SceneDectionActivity // Scene Dection
|-- TableRecognitionStartActivity // Table recognition entry
|-- TableRecognitionActivity // Table recognition
|-- DocumentSkewStartActivity // Document correction entry
|-- DocumentSkewCorretionActivity // Document correction
|-- StartActivity // Service entry
|-- BaseActivity // Activity base class
|-- SettingActivity // modulevision Basic Information
`module-body`
|-- com.mlkit.sample
|-- Activity
|-- FaceDetectionActivity //Face detection
|-- Live3DFaceAnalyseActivity //3D face detection
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本项目包含基于华为机器学习服务(ML Kit)开发的APP。工程目录如下: |-- MLKit-Sample // ML Kit场景化Demo,此Demo可以通过扫描二维码的方式在开发者联盟网站获取:获取Demo |-- ApplicationCases // 基于华为机器学习服务(ML Kit)开发的应用案例。 注意事项 hms-ml-demo工程包含两个独立的工程。下载代码后,您可以根据需求,将不同的嵌套工程加载到IDE,您可以单独运行每个工程。 添加新的工程 根文件夹已经包含一个通用的build.gradle,该将最新的Android Gradle插件,AGConntect和Kotlin加载到类classpath。因此,如果添加新工程,删除工程的build.gradle文件,除非需要为此工程添加独特的Gradle插件。同样适用于gradle.properties。 所有工程和嵌套模块都在根settings.gradle设置文件中定义,添加新的工程,将所有模块条目添加到外部设置文件中,然后删除工程的设置文件。
资源推荐
资源详情
资源评论
收起资源包目录
基于华为机器学习服务(ML Kit)开发的APP (2000个子文件)
gradlew.bat 2KB
gradlew.bat 2KB
Third Party Open Source Software Notice.docx 66KB
Third Party Open Source Software Notice.docx 66KB
Third Party Open Source Software Notice.docx 66KB
game.gif 4.81MB
background.gif 4.74MB
hand.gif 4.42MB
hand.gif 4.42MB
face.gif 3.92MB
face.gif 3.92MB
face.gif 2.65MB
start.gif 1.67MB
background1.gif 1.32MB
background5.gif 1.26MB
background3.gif 1.25MB
background4.gif 1.24MB
background2.gif 1.15MB
background6.gif 1.13MB
asr.gif 988KB
ID Photo DIY.gif 642KB
Photo Translate.gif 627KB
Translator.gif 498KB
tts.gif 411KB
.gitignore 225B
.gitignore 222B
.gitignore 222B
.gitignore 217B
.gitignore 216B
.gitignore 216B
.gitignore 216B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 208B
.gitignore 97B
.gitignore 96B
.gitignore 47B
.gitignore 15B
.gitignore 8B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
vertex_oes_input.glsl 340B
vertex_sticker_normal.glsl 311B
fragment_oes_input.glsl 223B
fragment_sticker_normal.glsl 168B
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1007B
build.gradle 670B
build.gradle 604B
settings.gradle 598B
settings.gradle 15B
settings.gradle 14B
gradlew 5KB
hms-ml-demo.iml 336B
gradle-wrapper.jar 58KB
gradle-wrapper.jar 53KB
ZoomImageView.java 47KB
TongueTwisterActivity.java 36KB
LocalTranslateActivity.java 35KB
ModelGameStartOneActivity.java 31KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
前网易架构师-高司机
- 粉丝: 8794
- 资源: 323
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功