Skip to content

Error in pixSauvolaBinarizeTiled: whsize must be >= 2 #4390

@evga

Description

@evga

Current Behavior

I'm processing a bunch of PDF images and sometimes I get the error:

Error in pixSauvolaBinarizeTiled: whsize must be >= 2
Error during processing.

The command line is the following:

tesseract.exe err.png stdout -c thresholding_method=2 --psm 11 -l eng+ita

This is one of the images that produce the error:

Image

Expected Behavior

I'm expecting the program not not produce an error, instead it should produce an empty result with exit code = 0

Suggested Fix

No response

tesseract -v

tesseract v5.5.0.20241111
leptonica-1.85.0
libgif 5.2.2 : libjpeg 8d (libjpeg-turbo 3.0.4) : libpng 1.6.44 : libtiff 4.7.0 : zlib 1.3.1 : libwebp 1.4.0 : libopenjp2 2.5.2
Found AVX2
Found AVX
Found FMA
Found SSE4.1
Found libarchive 3.7.7 zlib/1.3.1 liblzma/5.6.3 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.6
Found libcurl/8.11.0 Schannel zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0

Operating System

Windows 10

Other Operating System

No response

uname -a

No response

Compiler

No response

CPU

12th Gen Intel(R) Core(TM) i3-12100

Virtualization / Containers

No response

Other Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions