OCR does not recognize redaction overlay text after image redactions are applied
Current Behavior
Here Redaction is a Rectangular black color filled shape with text added on an image
We have identified an issue where OCR fails to generate the expected text output for content added as part of an image redaction workflow.
When a redaction is applied to an image document, replacement/redaction text is visually rendered on the image and is clearly visible to end users. However, after running OCR on the redacted image, the replacement text is not being recognized and therefore does not appear in the OCR output.
As a result, the generated OCR text does not accurately represent the visible content of the redacted image.
Expected Behavior
The OCR output should contain the replacement/redaction text that is visibly rendered on the image.
Example:
Visible image text after redaction: CONFIDENTIAL OCR output: CONFIDENTIAL
Our expectation is that any text visibly rendered on the final image presented to the OCR engine should be included in the OCR results. The issue appears specific to replacement text associated with image redactions and not with the original image content.
Suggested Fix
What ever the visible text in the image same should be extracted in the OCR text.
tesseract -v
tesseract 5.5.1 leptonica-1.83.1 libgif 5.1.9 : libjpeg 8d (libjpeg-turbo 2.0.3) : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.1 Found AVX512BW Found AVX512F Found AVX2 Found AVX Found FMA Found SSE4.1 Found OpenMP 201511
Operating System
Ubuntu 22.04 Jammy
Other Operating System
NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
uname -a
Linux ip-10-224-21-181 5.15.0-1112-aws #119~20.04.1-Ubuntu SMP Mon Jun 29 16:43:27 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Compiler
GCC 11.2
CPU
Model name: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit
Virtualization / Containers
Hypervisor
nitro
Other Information
NA
Source: tesseract-ocr/tesseract