Analisis Perbandingan Thresholding Otsu dan Sauvola untuk Binarisasi Dokumen Semi-Terstruktur
DOI:
https://doi.org/10.46880/jmika.Vol10No2.pp691-700Keywords:
Document Binarization, Otsu Thresholding, Sauvola Thresholding, Semi-Structured Documents, MSMEsAbstract
Semi-structured transaction documents acquired by scanners and cameras exhibit different degradation patterns. This study evaluates Otsu and Sauvola as baseline binarization methods on 100 self-collected document images, balanced between scanner and camera acquisitions (50 images each). Each image was converted to grayscale, enhanced with CLAHE, processed using six limited parameter configurations, and compared with manually validated pixel-level binary ground truth. Performance was assessed using MSE, PSNR, SSIM, precision, recall, F1-score, foreground ratio, and DRD, with F1-score as the primary criterion. Otsu_T10 achieved the best scanner-domain performance (F1-score = 0.917; DRD = 0.166). For camera images, Otsu_T11 produced the highest F1-score (0.172), while Sauvola_k03 yielded the lowest DRD (0.136). Visual failure analysis showed that scanner errors were dominated by broken thin strokes or character thickening, whereas camera errors included disconnected characters, missing small digits and table lines, and thick foreground artifacts caused by shadows and dark borders. These results confirm that the tested methods are baseline approaches rather than a complete camera-document processing solution. Perspective-aware cropping or correction, illumination normalization, and shadow reduction are mandatory before thresholding and downstream OCR on camera images. The conclusions are limited to the tested dataset and parameter ranges.
References
Abbas, S. A., & Hussain, S. ul. (2017). Recovering homography from camera captured documents using convolutional neural networks. arXiv. https://arxiv.org/abs/1709.03524
Bella, F., El Rhabi, M., Hakim, A., & Laghrib, A. (2022). An innovative document image binarization approach driven by the non-local p-Laplacian. EURASIP Journal on Advances in Signal Processing, 2022. https://doi.org/10.1186/s13634-022-00883-2
Bloechle, J.-L., Hennebert, J., & Gisler, C. (2023). YinYang, a fast and robust adaptive document image binarization for optical character recognition. Proceedings of the ACM Symposium on Document Engineering 2023. https://doi.org/10.1145/3573128.3609354
Darpito, M. N., Firdausy, K., & Fadlil, A. (2026). Performance evaluation of Otsu and Sauvola thresholding for structured document binarization. Scientific Journal of Informatics, 13(1), 189–200. https://doi.org/10.15294/sji.v13i1.40245
Das, S., Ma, K., Shu, Z., Samaras, D., & Shilkrot, R. (2019). DewarpNet: Single-image document unwarping with stacked 3D and 2D regression networks. Proceedings of the IEEE/CVF International Conference on Computer Vision, 131–140. https://doi.org/10.1109/ICCV.2019.00022
Feng, H., Wang, Y., Zhou, W., Deng, J., & Oct, C. V. (2021). DocTr: Document image transformer for geometric unwarping and illumination correction. Association for Computing Machinery. https://doi.org/10.1145/3474085.3475388
Gatos, B., Ntirogiannis, K., & Pratikakis, I. (2009). ICDAR 2009 document image binarization contest (DIBCO 2009). 2009 10th International Conference on Document Analysis and Recognition, 1375–1382. https://doi.org/10.1109/ICDAR.2009.246
Gatos, B., Pratikakis, I., & Perantonis, S. J. (2006). Adaptive degraded document image binarization. Pattern Recognition, 39(3), 317–327. https://doi.org/10.1016/j.patcog.2005.09.010
Guan, S., et al. (2025). PreP-OCR: A complete pipeline for document image restoration and enhanced OCR accuracy, 1, 15413–15425.
Ha, H. T., & Horak, A. (2022). Information extraction from scanned invoice images using text analysis and layout features. Signal Processing: Image Communication, 102, 116601. https://doi.org/10.1016/j.image.2021.116601
Han, S., Ji, S., & Rhee, J. (2023). Diffusion-denoising process with gated U-Net for high-quality document binarization. Applied Sciences. https://doi.org/10.20944/preprints202308.2048.v1
Huang, Z., Chen, K., He, J., Bai, X., Karatzas, D., Lu, S., & Jawahar, C. V. (2019). ICDAR2019 competition on scanned receipt OCR and information extraction. 2019 International Conference on Document Analysis and Recognition, 1516–1520. https://doi.org/10.1109/ICDAR.2019.00244
Jing, Z., & Tang, B. (2024). Improved image segmentation method based on Otsu thresholding and level set techniques. Journal of Physics: Conference Series, 2813, 012017. https://doi.org/10.1088/1742-6596/2813/1/012017
Jumiawi, W. A. H., & El-Zaart, A. (2022). Improvement in the between-class variance based on lognormal distribution for accurate image segmentation.
Kamel, O., Amin, K. M., Semary, N. A., & Aboelenien, N. (2024). An automated contrast enhancement technique for remote sensed images. IJCI. International Journal of Computers and Information, 11(1), 1-16.
Kasem, M. S., Mahmoud, M., Senussi, M. F., Abdalla, M., & Kang, H. S. (2026). KORIE: A multi-task benchmark for detection, OCR, and information extraction on Korean retail receipts. Mathematics, 14(1). https://doi.org/10.3390/math14010187
Li, D., Wu, Y., & Zhou, Y. (2021). SauvolaNet: Learning adaptive Sauvola network for degraded document binarization. arXiv. https://doi.org/10.1007/978-3-030-86337-1_36
Li, H., & Yu, X. (2025). Intelligent management accounting tools based on big data algorithms and invoice automatic recognition algorithms. Journal of Computational Methods in Sciences and Engineering, 25(5), 4335–4347. https://doi.org/10.1177/14727978251337886
Liu, X., Zhang, Z., Hao, Y., Zhao, H., & Yang, Y. (2024). Temperature feature extraction method for infrared images.
Naik, Y. (2024). Enhancement of degraded historical document images for binarization. Journal of Electrical Systems. https://doi.org/10.52783/jes.5990
Nikolaidou, K., Seuret, M., Mokayed, H., & Liwicki, M. (2022). A survey of historical document image datasets. International Journal on Document Analysis and Recognition, 25(4), 305–338. https://doi.org/10.1007/s10032-022-00405-8
Pratikakis, I., Zagoris, K., Barlas, G., & Gatos, B. (2017). ICDAR2017 competition on document image binarization (DIBCO 2017). 2017 14th IAPR International Conference on Document Analysis and Recognition, 1395–1403. https://doi.org/10.1109/ICDAR.2017.228
Quattrini, F., Pippi, V., Cascianelli, S., & Cucchiara, R. (2024). Binarizing documents by leveraging both space and frequency. arXiv. https://doi.org/10.48550/arXiv.2404.17243
Thendral, R., & Abitha, S. (2026). AutoBill voice assistant: Intelligent invoice reader automates data extraction and provides real-time audio feedback. 2026 IEEE International Students’ Conference on Electrical, Electronics and Computer Science. https://doi.org/10.1109/SCEECS68810.2026.11429800
Tung, T. (2021). ICEBIN: Image contrast enhancement based on induced norm and local patch approaches. IEEE Access, 9, 23737–23750. https://doi.org/10.1109/ACCESS.2021.3056244
Xiong, W., Zhou, L., Yue, L., Li, L., & Wang, S. (2021). An enhanced binarization framework for degraded historical document images. EURASIP Journal on Image and Video Processing, 2021. https://doi.org/10.1186/s13640-021-00556-4
Yang, Z., Zuo, S., Zhou, Y., He, J., & Shi, J. (2024). A review of document binarization: Main techniques, new challenges, and trends. Electronics, 13(7), 1394. https://doi.org/10.3390/electronics13071394
Zhang, L., Wang, K., & Wan, Y. (2024). An efficient transformer–CNN network for document image binarization. Electronics, 13(12), 2243. https://doi.org/10.3390/electronics13122243
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Zulfikar Yusya Mubarak, Imam Riadi, Abdul Fadlil

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.










