Abstract
A method for segmenting and recognizing text embedded in video and images is proposed in this paper. In the method, multiple segmentation hypotheses of text image are first generated based on a Markov Random Field (MRF) model. Background regions in each hypothesis are then removed by using a grayscale consistency constraint (GCC) in a connected component analysis procedure before being processed by an optical character recognition (OCR) software.
Introduction
Extracting text from video sources—such as news tickers, sports scores, or credits—is a critical component for indexing and searching multimedia content. However, video text presents unique challenges compared to scanned documents: low resolution, complex and moving backgrounds, and unknown polarity (light-on-dark vs. dark-on-light). Traditional Optical Character Recognition (OCR) systems often fail because they rely on simple thresholding methods like Otsu's, which struggle with the non-bimodal grayscale distributions typical of video frames.
This paper addresses these hurdles by proposing a system that avoids "hard" early decisions. Instead of a single segmentation attempt, it generates multiple hypotheses using Markov Random Fields (MRF) and filters them through a "grayscale consistency constraint" (GCC), allowing the OCR engine to select the most linguistically plausible result.
Methodology
The proposed pipeline transitions from initial image data to final text recognition through several sophisticated stages designed to handle noise and ambiguity.
MRF-based Segmentation and Multiple Hypotheses
Rather than analyzing pixels in isolation, the system employs a Markov Random Field (MRF) model to account for spatial correlations. This assumes that if a pixel belongs to a character, its neighbors likely do as well. Using a Gibbsian Expectation Maximization (GEM) algorithm, the image is modeled as a mixture of $K$ Gaussian layers.
The core innovation lies in generating multiple hypotheses. Instead of selecting a single "best" number of layers ($K$), the system generates candidates for $K=2, 3,$ and $4$. This produces a set of binary images, ensuring that at least one likely contains a clean segmentation of the text, even in the presence of complex backgrounds.
Grayscale Consistency Constraint (GCC)
To refine these candidates, a Grayscale Consistency Constraint (GCC) is applied. This heuristic assumes that characters within a single string should share similar grayscale values. By using a robust 1D-Median operator, the system filters out background "blobs" that may mimic character shapes but do not match the string's overall grayscale profile. This step is vital for removing artifacts introduced by JPEG/MPEG compression.
Result Selection
Finally, the OCR engine (OpenRTK) processes all hypotheses. The system selects the final output based on a string confidence value ($CV$) derived from a bi-gram language model, effectively choosing the result that most closely resembles natural language.
Experimental Results
The system was evaluated on a dataset of 1,208 images (containing 9,562 characters) extracted from one hour of BBC sports broadcasts. The researchers compared their GEM-based approach against the industry-standard Otsu thresholding method.
As shown in the results table, the GEM-based MRF approach significantly outperforms the standard Otsu baseline. Specifically, while Otsu achieved an 89.3% Word Recognition Rate (WRR), the GEM method with $K=2$ reached 93.0%. The integration of multiple hypotheses ($K=4/3/2$) further improved performance, particularly in complex scenarios. Notably, the system's robustness is highlighted by its "Top-N" accuracy: it achieves a 97.5% WRR when the top two hypotheses are considered, and 97.9% for the top three.
Conclusion and Future Work
By delaying the final segmentation decision and leveraging spatial context through MRFs, this approach provides a robust solution for video text recognition. The Grayscale Consistency Constraint serves as a powerful filter for non-textual noise. While the current system is highly effective, the authors suggest that more sophisticated language models for result selection could further close the gap in recognition accuracy. Additionally, future work may address the computational overhead associated with running multiple OCR passes.
Summary updated