[Paper Review] Automatic Detection of Font Size Straight from Run Length Compressed Text Documents
This paper proposes a novel method for directly detecting font size from run-length compressed text documents without decompression, using line-level features like line height and ascender height to train a regression model. The approach achieves 99.67% accuracy on mixed and single-font datasets, enabling efficient, intelligent OCR and document analysis directly on compressed data.
Automatic detection of font size finds many applications in the area of intelligent OCRing and document image analysis, which has been traditionally practiced over uncompressed documents, although in real life the documents exist in compressed form for efficient storage and transmission. It would be novel and intelligent if the task of font size detection could be carried out directly from the compressed data of these documents without decompressing, which would result in saving of considerable amount of processing time and space. Therefore, in this paper we present a novel idea of learning and detecting font size directly from run-length compressed text documents at line level using simple line height features, which paves the way for intelligent OCRing and document analysis directly from compressed documents. In the proposed model, the given mixed-case text documents of different font size are segmented into compressed text lines and the features extracted such as line height and ascender height are used to capture the pattern of font size in the form of a regression line, using which the automatic detection of font size is done during the recognition stage. The method is experimented with a dataset of 50 compressed documents consisting of 780 text lines of single font size and 375 text lines of mixed font size resulting in an overall accuracy of 99.67%.
Motivation & Objective
- To enable font size detection directly from run-length compressed text documents, avoiding the need for decompression.
- To reduce processing time and storage overhead in OCR and document image analysis pipelines.
- To develop a method that operates at the line level using minimal, compressed features such as line height and ascender height.
- To achieve high accuracy in font size detection on both single- and mixed-font documents without access to uncompressed data.
- To pave the way for intelligent document analysis systems that operate natively on compressed document formats.
Proposed method
- The method processes run-length compressed text documents by segmenting them into individual text lines at the compressed level.
- Key features such as line height and ascender height are extracted directly from the compressed representation using run-length encoding properties.
- A regression model is trained on these features to learn the relationship between compressed line characteristics and actual font size.
- The model uses line height as the primary predictor, with ascender height as a secondary feature to improve robustness.
- During inference, the trained regression model predicts font size directly from compressed line data without decompression.
- The approach leverages the structural consistency of text in run-length compressed format to maintain feature fidelity for detection.
Experimental results
Research questions
- RQ1Can font size be accurately detected directly from run-length compressed text documents without decompression?
- RQ2How do line-level features like line height and ascender height in compressed form correlate with actual font size?
- RQ3What is the achievable accuracy of font size detection when operating solely on compressed data?
- RQ4How does the method perform on mixed-font documents compared to single-font documents in the compressed domain?
- RQ5Can a regression model trained on compressed features generalize effectively across diverse text layouts and font sizes?
Key findings
- The proposed method achieved an overall detection accuracy of 99.67% on a dataset of 50 compressed documents containing 780 single-font and 375 mixed-font text lines.
- The model demonstrated high robustness in detecting font size directly from compressed data, eliminating the need for decompression.
- Line height was found to be the most reliable feature for font size estimation in the compressed domain.
- The inclusion of ascender height improved detection accuracy, especially in mixed-font scenarios.
- The method significantly reduces processing time and storage requirements by avoiding decompression in OCR pipelines.
- The results confirm that meaningful document analysis features can be reliably extracted from run-length compressed text without full decompression.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.