-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Environment
- Tesseract Version: tesseract 5.0.0-alpha-357-gdc907
leptonica-1.76.0
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.36 : libtiff 4.0.10 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
Found AVX2
Found AVX
Found FMA
Found SSE - Commit Number: dc90741
- Platform: Linux jk-XPS-13 5.0.0-25-generic Purely informational: Renard Wellnitz's original versions, and Zdenko's current version #26-Ubuntu SMP Thu Aug 1 12:04:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Current Behavior:
This page of a book gets recognized perfectly except for „die Sache selbst“ (end of third line), which becomes „die Sache selbst‘ (single quote). The other single quote becomes another block containing only the very small character "C"

I'm sorry I could not provide a cropped test image, but for smaller regions the problem disappears.
I'm calling tesseract with default parameters:
tesseract testcase.png - -l deu
When called with psm 6 (single uniform block of text) it works, but I don't want to loose the layout information.
tesseract testcase.png - -l deu -psm 6
This is of course a minor bug, but maybe it's also easy to fix. It happens like one time in hundred pages. Sometimes footnote numbers get lost the same way.
The problem appears at least with tesseract 4.0 / 4.1 / master and in all oem modes.
Expected Behavior:
tesseract should not split of single chars in extra regions
Suggested Fix:
Maybe padding the recognized blocks a bit?