Hi
The attached test image (which could be in a batch of a million, so I need
a generalised fix) is being processed in Tess4J but I also get the same
issue with the Windows build from Mannheim version:
C:\temp>tesseract --version
tesseract v5.0.0-alpha.20210506
leptonica-1.78.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff
4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
Found AVX2
Found AVX
Found FMA
Found SSE4.1
Found libarchive 3.5.0 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 liblz4/1.7.5
libzstd/1.4.5
Found libcurl/7.77.0-DEV Schannel zlib/1.2.11 zstd/1.4.5 libidn2/2.0.4
nghttp2/1.31.0
When I execute "tesseract test1.png test1" the output contains at line 21
"PartyA | PartyB | Valuation". "Party A" should be two words as should
"Party B".
When I output the hocr using Tess4J I can see that the gaps between the
characters are 4,6,2,2,12
ie the gap between the "y" and the "A" is much bigger than the others.
<span class='ocrx_word' id='word_1_15' title='bbox 1551 349 1681 386;
x_wconf 91; x_fsize 9'>
<span class='ocrx_cinfo' title='x_bboxes 1551 349 1569 378; x_conf
99.031525'>P</span>
<span class='ocrx_cinfo' title='x_bboxes 1573 356 1590 378; x_conf
98.951897'>a</span>
<span class='ocrx_cinfo' title='x_bboxes 1596 356 1608 378; x_conf
98.996353'>r</span>
<span class='ocrx_cinfo' title='x_bboxes 1610 351 1623 378; x_conf
99.038818'>t</span>
<span class='ocrx_cinfo' title='x_bboxes 1625 357 1644 386; x_conf
98.881676'>y</span>
<span class='ocrx_cinfo' title='x_bboxes 1656 349 1681 378; x_conf
98.736168'>A</span>
</span>
Any suggestions what I could do?
Thx
--
LIKEZERO Limited is a limited company registered in Scotland with
registered number SC651418. Our registered office is at Quartermile One, 15
Lauriston Place, Edinburgh, United Kingdom, EH3 9EP
This email is intended
solely for the addressee and may contain confidential information. If you
have received this message in error, please immediately and permanently
delete it. Do not use, copy or disclose the information contained in this
message or in any attachment.
This email is not in any way intended to
create a binding contract.
We may monitor and record emails for security
reasons and for monitoring compliance with internal policies.
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/ec9281eb-6fe6-49b1-adfb-2897de7da852n%40googlegroups.com.