Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

20 November 2026

26 Pages

Mean-C Thresholding with Noise-Adaptive Offset for OCR of Low-Contrast Receipts: Analysis, Benchmark, and Resource Model for Stream-Based Implementation

,
,
,
,
,
and
1
Department of Information Technologies, Uman National University, 1 Institutska Str., 20305 Uman, Ukraine
2
Polish-Japanese Academy of Information Technology, 86 Koszykowa Str., 02-008 Warsaw, Poland
3
Faculty of Computing and Telecommunications, Poznan University of Technology, Piotrowo 3, 60-965 Poznan, Poland
4
Faculty of Information Electronic Systems, Vinnytsia National Technical University, Khmelnytske Highway 95, 21021 Vinnytsia, Ukraine
Electronics2026, 15(22), 5437;https://doi.org/10.3390/electronics15225437 
(registering DOI)
This article belongs to the Section Electronic Multimedia

Abstract

Binarization of fiscal receipts becomes difficult when the thermal printing has faded and lighting is uneven. We investigate the classical local rule Mean−C, T=m−C, which requires only a single integral representation or one set of line buffers. The authors analyze when its absolute shift outperforms the relative shift of the Bradley–Roth method or the variance-based shift of the Sauvola method. The image formation model defines the permissible band zσn≤C<(1−p)Δmin (noise level σn, ink fraction p, ink contrast Δmin). The model explains why Mean−C thresholding preserves faded print and why it fails in the presence of strong noise. Therefore, the authors determine the shift by a robust noise estimate, C*=maxC0,κσ^n (noise-adaptive Mean-C, NA-Mean-C), without changing the rules for an individual pixel. In the benchmark, the parameters for 11 methods were selected using a separate validation set; the results were evaluated across five degradation categories without exceptions. On 150 synthetic receipts, NA-Mean-C achieved the highest average F-measure (91.61%) and the lowest average character error rate (CER) (6.89%), whereas Mean-C with a tuned fixed shift failed to handle high-frequency noise (F-measure 15.89%). The Wolf and Gatos methods remained the best in specific categories. On 80 public Scanned Receipt Optical Character Recognition (OCR) and Information Extraction (SROIE) receipts—across fourconditions—the NA-Mean-C method and other mean-based approaches successfully extracted the total amount from 55.6 to 57.5% of the documents compared to 48.8% for Gatos and 40.3% for Otsu. A bit-accurate model of the streaming implementation shows that, compared to Sauvola, Mean−C saves only about 6% of on-chip memory but does not require a general-purpose multiplier, a divider, or the calculation of a square root. Evaluated independently of binarization and OCR, the keyword-based total amount extractor improved accuracy on the SROIE benchmark text from 42.9% to 83.0%.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.