如何减少用于 android 中 TessBaseAPI 的 tessdata 的大小? [英] How to reduce size of tessdata used for TessBaseAPI in android?

查看:53
本文介绍了如何减少用于 android 中 TessBaseAPI 的 tessdata 的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 android 应用程序,我在其中使用 Tesseract OCR,即 TessBaseAPI.这需要 tessdata,它是 21mb 文件.我的最终应用发行版 APK 大约为 19 mb,我发现它很多.有什么方法可以减少 tessdata 或我的应用程序的大小或其他任何可以帮助我减少最终 APK 大小的东西?

I have an android application where I am using Tesseract OCR i.e the TessBaseAPI. This requires tessdata which is 21mb file. My final app release APK comes to approx 19 mb which I find quite a lot. Is there any way by which I can reduce the size of tessdata or my app or anything else which will help me reduce the final APK size?

推荐答案

您可以使用 .trainddata 文件的 >3.01 版本——它们的大小要小得多——它们仍然与较新版本的 Tesseract 兼容.

You can use the 3.01 version of .trainddata files -- they have much smaller size -- which are still compatible with newer versions of Tesseract.

这篇关于如何减少用于 android 中 TessBaseAPI 的 tessdata 的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆