如何使用命令行获得对 tesseract 的字符明智的信心? [英] How to get character wise confidence in tesseract using command line?

查看:20
本文介绍了如何使用命令行获得对 tesseract 的字符明智的信心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过命令行使用 tesseract 4.0 获得单词级别的置信度分数.有兴趣知道是否也有办法让角色自信.

I am able to get word level confidence score using tesseract 4.0 through the command line. Interested to know if there is a way to get the character confidence too.

对于单词级别的置信度,使用以下命令:

For word level confidence used the below command:

tesseract [Image name] outputbase --oem 1 -l eng --psm 8 tsv

推荐答案

在您的配置文件中将 hocr_char_boxes 设置为 1.或者,在命令行中,您更新的命令将是:

Set hocr_char_boxes to 1 in your config file. Or, at the command line, your updated command would be:

tesseract [Image name] outputbase --oem 1 -l eng --psm 8 -c hocr_char_boxes=1 hocr

注意 hocr 输出选项并在该文件中查找 ..._wconf,例如

Note the hocr output option and look in that file for ..._wconf, e.g.

 <span class='ocrx_word' id='word_1_1' title='bbox 127 344 4618 6915; x_wconf 1'>

如果这对您有用,请告诉我,否则我将删除答案.

Let me know if this works for you, otherwise I'll just delete the answer.

来源:https://github.com/tesseract-ocr/tesseract/issues/1465#issuecomment-513139976

这篇关于如何使用命令行获得对 tesseract 的字符明智的信心?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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