如何使用命令行获得对 tesseract 的字符明智的信心?

编程入门 行业动态 更新时间:2024-10-25 10:20:44
本文介绍了如何使用命令行获得对 tesseract 的字符明智的信心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我可以通过命令行使用 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/tesseract-ocr/tesseract/issues/1465#issuecomment-513139976

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

更多推荐

[db:关键词]

本文发布于:2023-04-30 23:16:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1401122.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   命令行   明智   字符   信心

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!