OCR用于识别的字体

OCR用于识别的字体

本文介绍了显式设置Tesseract-OCR用于识别的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有整个文件只使用一种字体的文件。不同的文档可能会有不同的字体,但我知道哪个文档使用哪种字体。



是否有明确告诉Tesseract-OCR在识别过程中使用哪种字体的选项不,我不认为Tesseract支持这样的选项。你可以做的是训练一个特定的字体,然后在识别你的文档时指定trainneddata。

I have documents which use only one font throughout the document. Different documents might have different fonts, but I know which document uses which font.

Is there an option to explicitly tell Tesseract-OCR which font to use during recognition for a given image?

解决方案

No, I don't think Tesseract supports such an option. What you can do is to train for one specific font and then specify that trainneddata during recognition of your documents.

这篇关于显式设置Tesseract-OCR用于识别的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 11:20