Text Identification in Complex Background Using SVM

Datong Chen, Hervé Bourlard, Jean-Philippe Thiran

Abstract

This paper introduces a robust two-stage algorithm for identifying text in complex images and video frames. By combining fast edge-based candidate extraction with a Support Vector Machine (SVM) trained on "distance map" features, the researchers achieved a high identification rate of 98.7% while drastically reducing false alarms compared to traditional methods. The system addresses the challenges of busy backgrounds and compression artifacts common in multimedia content.

1. Introduction

Extracting text from video—often referred to as "closed captions" or "overlay text"—is a vital step for indexing and retrieving multimedia content. However, this process is notoriously difficult due to the nature of video data. Unlike text on a clean white page, video text is often embedded in busy, moving backgrounds, comes in various colors and fonts, and suffers from "compression artifacts" (digital noise found in JPEG or MPEG files).

Example of overlay text with a distinct background bar, typical of video captions.

Existing methods generally fall into three categories: region-based (fails with complex backgrounds), texture-based (accurate but slow), and edge-based (fast but prone to false alarms). The authors sought a "best of both worlds" approach: the speed of edge detection with the precision of machine learning.

2. Methodology

The proposed system utilizes a two-step pipeline to balance efficiency and accuracy.

2.1 Candidate Text Line Extraction

The first stage performs a rapid sweep of the image. It uses a Canny edge detector to find vertical and horizontal edges. Because text characters are essentially clusters of short, multi-directional edges, the algorithm uses morphological dilation to expand edge pixels and bridge the gaps between letters, forming "candidate" regions. Horizontal projection is then applied to find the top and bottom "baselines" of the text, refining the bounding boxes of these candidates.

Visualization of candidate regions after edge detection and morphological processing.

2.2 SVM-Based Refinement

To filter out non-text objects like fences or foliage that mimic text edges, the authors employed a Support Vector Machine (SVM).

  • The Feature Space: Instead of using raw pixels or colors, which vary significantly across different video sources, the system uses a Distance Map. For every pixel in a 16x16 window, the Euclidean distance to the nearest edge is calculated. This creates a signature of the "shape" of the edges that is independent of brightness or color.
  • The Classifier: The SVM was trained on 6,000 samples (text vs. non-text) using a Radial Basis Function (RBF) kernel. SVMs were chosen for their ability to minimize "structural risk" and handle class imbalances—where non-text candidates far outnumber actual text—better than the neural networks of the era.

3. Datasets and Experimental Results

The study utilized a substantial dataset for its time (2001), consisting of 18,000 video frames from diverse sources including advertisements, sports, news, and movies, along with 50 compressed still images. All images were processed at a resolution of 352x288.

The addition of the SVM stage proved transformative for accuracy:

  • Identification Rate (IR): The system correctly identified 98.7% of text lines.
  • False Alarm Reduction: Without the SVM, the edge-based method had a False Region Alarm Rate (FRR) of 15.4%. With the SVM, this plummeted to just 1.7%.
  • Efficiency: The total system processed images at roughly 2.76 seconds per frame on a 333 MHz Sun UltraSPARC-II, making it competitive for the hardware of the day.

4. Discussion and Limitations

While highly effective, the algorithm has limitations. It treats every video frame as a standalone image, ignoring temporal information that could improve robustness against momentary noise. Additionally, the authors focused on intensity-based edges; incorporating color information from U or V channels could potentially help find text with low intensity contrast but high color contrast against the background.

5. Conclusion

The integration of edge-based heuristics with SVM-based refinement offers a powerful solution for text identification in complex visual environments. By utilizing distance maps, the system achieves high invariance to color and lighting changes, providing a reliable foundation for automated video indexing.

Summary updated

BibTeX
@inproceedings{chen2001text,
  author = {Datong Chen and Hervé Bourlard and Jean-Philippe Thiran},
  title = {{Text Identification in Complex Background Using SVM}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2001},
  doi = {10.1109/cvpr.2001.991021},
}
Figure