image-processing - 使图像中的文本更薄以用于 OCR

标签 image-processing ocr

我正在 Ubuntu 上用 Python 制作一个自动文本识别脚本。

我正在使用 Gocr并且识别渲染太低。

例子:

enter image description here

输出:_O4_4E34E_4_O4_
我想图像中的类型太粗了,所以我在问是否有办法使用 python 库或 linux 命令使它更薄。

最佳答案

您可能需要在图像上应用诸如“侵 eclipse ”之类的形态学操作,例如使用 OpenCV。这将使结构更薄。但是,以质量为代价。

看这里:https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_morphological_ops/py_morphological_ops.html

关于image-processing - 使图像中的文本更薄以用于 OCR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21086691/

相关文章:

image-processing - 哈里斯-拉普拉斯-检测器: Corner- and Blob-Detector?

python - 噪声二维阵列中的峰值检测

python - 如何在此图像中定位特定的表单域

image-processing - 阿拉伯语开源 OCR 库

Python ocr pdf提取多种语言

python - 如何在opencv(阈值)中改变轮廓形成的区域

c++ - 错误 : identifier <uint8_t> undefined and is it possible to use at openCV

image - 从图像中删除背景灰色像素

c# - 如何将播放视频作为相机输入?

c++ - 基本像素/单元计数算法