使用tess4j从彩色图像中读取文本 [英] Read text from colored image using tess4j

查看:133
本文介绍了使用tess4j从彩色图像中读取文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够从单色图像中读取文本,但无法从彩色图像中读取文本.我将不胜感激...

I am able to read text from monochrome image but I am unable to read text from colored image. I will appreciate any help...

推荐答案

您可以使用阈值对位图/图像进行预处理,然后再向其提供库.然后它将是黑白的,并且重起应该很容易.

You can use Thresholding to preprocess the bitmap/image, before feeding the library with it. Then it will be black and white and the recotgnition should work easily.

这篇关于使用tess4j从彩色图像中读取文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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