English | 中文
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.
PhotoReader |-- com.huawei.mlkit.sample.photoreader |-- Activity |-- MainActivity //Entry |-- ReadPhotoActivity // Function interface
Huawei's text recognition and translation services can help you implement more interesting and powerful functions, such as:
General text recognition
TTS
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.
Android 4.4 or later is recommended.
The sample code has obtained the Apache 2.0 license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。