Rob*_*ite 5 python ocr tesseract python-tesseract
我试图通过使用 pytesseract 配置更改参数来改善结果。我想知道是否有可能按照https://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality#page-segmentation-method 中的规定更改 load_system_dawg 和 load_freq_dawg,因为我想要得到的词并不是真的英语,但像 XYZ ### 和其他一些独特的字母序列。看截图

我可以调整 --psm 的配置,但是如果我尝试 --load_system_dawg 0 会得到没有这样的命令行参数或文件不存在的错误。我不知道,似乎值得一试......
params = r'--psm 11'
string = pytesseract.image_to_string(img, config = params)
Run Code Online (Sandbox Code Playgroud)
我假设没有办法通过 python 来做到这一点,但如果我能被指导如何改变它,我会很感激,因为我对 C++ 的了解不多。这个改动会通过pytesseract初始化吗?此外,我还尝试更改用户模式,但不确定这是否是更好的方法
您需要了解以下信息:
\n例如,如果应用阈值图像将变为:
\n\n接下来申请bitwise_not:
现在,如果您阅读(假设图像作为单个统一的文本块。):
\nHinecratt 1.14.4 1.14.4 / vanilla Javea: 136 51 64bit\n68 fps (8 chunk updates) T: inf vsune fancy-clouds veo Hem: 4ah 8757 2648NE\nIntegrated server @ 11 ms ticks, 13 tx, 735 rx Allocated: 814% 1664M6\nC: 1615376 (5) 0: 15, pC: G66, pu: 6, ab: Se\nc afte oe CPU: 16% AND Fiyzen 7 L786 ECight-Core Processor\nClient Chunk Cache: 1659, 75 Display: 1926%1880 CHVIOIA Corporation?\nServerChunkCache: S734 GeForce OTA 1666 606/PCle/55E2\nninecrattoverworld FC: a 4.6.4 HVIDIA 431.68\n42: S6L641 / 11.66668 \xc2\xa2 361.939 Targeted Block\nBlock: S61 11 361 Hinecrattiron_ore\nChunk: 13 11 3 in 18 @ 22\nFacing: west (Towards negative 43 095.4 7 15.79 Targeted Fluid\nClient Light: 11 (8 sky, 11 block? ninecrattempty\nServer Light: (8 sky, 11 black?\nCHS: 67 MH: 67\n5H 3:67 0: 67 M: 67 ML: 67\nBiome: minecrattdesert\nLocal Difficulty: 165 7/7 6.66 (Day 243\nLooking at block: 295 16 361\nLooking at liquid: 295 16 361\nSounds: 37247 + a7G\nDebug: Pie Cehittl: hidden FPS + TPS Caltl: hidden\nFor hele: press Fa + oO\nRun Code Online (Sandbox Code Playgroud)\n代码:
\nHinecratt 1.14.4 1.14.4 / vanilla Javea: 136 51 64bit\n68 fps (8 chunk updates) T: inf vsune fancy-clouds veo Hem: 4ah 8757 2648NE\nIntegrated server @ 11 ms ticks, 13 tx, 735 rx Allocated: 814% 1664M6\nC: 1615376 (5) 0: 15, pC: G66, pu: 6, ab: Se\nc afte oe CPU: 16% AND Fiyzen 7 L786 ECight-Core Processor\nClient Chunk Cache: 1659, 75 Display: 1926%1880 CHVIOIA Corporation?\nServerChunkCache: S734 GeForce OTA 1666 606/PCle/55E2\nninecrattoverworld FC: a 4.6.4 HVIDIA 431.68\n42: S6L641 / 11.66668 \xc2\xa2 361.939 Targeted Block\nBlock: S61 11 361 Hinecrattiron_ore\nChunk: 13 11 3 in 18 @ 22\nFacing: west (Towards negative 43 095.4 7 15.79 Targeted Fluid\nClient Light: 11 (8 sky, 11 block? ninecrattempty\nServer Light: (8 sky, 11 black?\nCHS: 67 MH: 67\n5H 3:67 0: 67 M: 67 ML: 67\nBiome: minecrattdesert\nLocal Difficulty: 165 7/7 6.66 (Day 243\nLooking at block: 295 16 361\nLooking at liquid: 295 16 361\nSounds: 37247 + a7G\nDebug: Pie Cehittl: hidden FPS + TPS Caltl: hidden\nFor hele: press Fa + oO\nRun Code Online (Sandbox Code Playgroud)\n我正在使用 pytesseract 版本0.3.7
\n