9 Star 55 Fork 24

华为移动服务/hms-ml-demo

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

Photo Reader

License

English | 中文

Contents

Introduction

PhotoReader uses the text recognition and TTS functions of HUAWEI ML Kit to get the text in photos and convert it into audio output. Currently, the following languages are supported: simplified Chinese and English for TTS. PhotoReader uses the text recognition, translate and TTS functions of HUAWEI ML Kit to get the text in photos and convert it into audio output.

This demo demonstrates how to use HUAWEI ML Kit to quickly implement the image reading function in your app. The purpose is to help you experience the text recognition, translate and TTS functions and integrate HUAWEI ML Kit as soon as possible.

Following Modules are available
  • App Module, which is written in Java fully
  • Kotlin Module, which is written in Kotlin fully
  • Lensengine Module, which is encapsulating the camera implementation based on old android camera API, written in Java

Project Directory Structure

PhotoReader |-- com.huawei.mlkit.sample.photoreader |-- Activity |-- MainActivity //Entry |-- ReadPhotoActivity // Function interface

More Scenarios

Huawei's text recognition and translation services can help you implement more interesting and powerful functions, such as:

  • General text recognition

    • Recognition of text in bus license plates
    • Recognition of text in documents
  • TTS

    • Novel reading
    • Navigation voice

Procedure

  • Clone the code library to the local computer.

    git clone https://github.com/HMS-Core/hms-ml-demo.git
    
  • If you have not registered as a developer, register and create an app in AppGallery Connect.

  • Obtain the agconnect-services.json file from Huawei Developers.

  • Replace the sample-agconnect-services.json file in the project.

  • Compile and run on an Android device or simulator.

Supported Environment

Android 4.4 or later is recommended.

License

The sample code has obtained the Apache 2.0 license.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/hms-core/hms-ml-demo.git
git@gitee.com:hms-core/hms-ml-demo.git
hms-core
hms-ml-demo
hms-ml-demo
master

Search