A Binary Convolutional Encoder-decoder Network for Real-time Natural Scene Text Processing

Zichuan Liu, Yixing Li, Fengbo Ren, Hao YuarXiv 2016 · arXiv

Abstract

Natural Scene Text Processing (NSTP) is a critical component for autonomous systems but remains computationally demanding for edge devices. This paper introduces B-CEDNet, a binary convolutional encoder-decoder network optimized for real-time text interpretation. By constraining weights and activations to binary values, B-CEDNet replaces expensive floating-point operations with bitwise XNOR logic. The resulting model achieves an 8x speedup and a 96% reduction in memory footprint compared to full-precision counterparts, while maintaining over 90% pixel-wise accuracy on standard benchmarks.

Introduction

The ability to detect and interpret text in natural environments—such as road signs, storefronts, and license plates—is essential for Advanced Driver Assistance Systems (ADAS) and mobile robotics. However, existing NSTP methods often struggle to balance accuracy with computational efficiency. Character-level sliding window approaches are prohibitively slow, while word-level methods typically require massive memory for fully-connected layers. B-CEDNet addresses these challenges by performing "one-shot" text interpretation, identifying all characters in an image simultaneously through a highly efficient binary architecture.

B-CEDNet Architecture

The proposed B-CEDNet utilizes an encoder-decoder framework designed to preserve spatial information while minimizing computational overhead.

The B-CEDNet architecture featuring binary encoder and decoder blocks.

The Encoder compresses a grayscale input image into a high-level feature representation. The Decoder then translates these features into a multi-channel "salience map"—a pixel-wise probability distribution identifying characters and background. To achieve real-time performance, the network is binarized, allowing hardware to utilize bitwise XNOR and bit-counting operations instead of floating-point multiplications. Notably, the authors utilize cross-entropy error as the loss function to support the probability-based output required for salience mapping, departing from the standard hinge loss used in many binary networks.

Training and Datasets

Training a pixel-wise model requires extensive labeled data. To overcome the lack of real-world pixel-level annotations, the authors developed a custom text rendering engine to generate over 200,000 synthetic images featuring diverse fonts, colors, and distortions. For evaluation, the model was tested against the ICDAR-03 and ICDAR-13 datasets, which serve as standard benchmarks for real-world scene text.

Performance Evaluation

B-CEDNet demonstrates that binarization does not necessarily come at the cost of accuracy. The model achieved 90% and 91% pixel-wise accuracy on ICDAR-03 and ICDAR-13, respectively, matching the performance of full-precision models.

Comparison of inference time and network size between binary and non-binary models.

The efficiency gains are substantial. B-CEDNet occupies only 2.14 MB of memory—a 96% reduction from the 66.12 MB required by the non-binary version. Inference time is reduced to an average of 4.59 ms on a GPU, representing an 8x overall speedup. Specific layers, such as Block-8, experienced speedups as high as 17.7x due to the efficiency of binary operations.

Conclusion

B-CEDNet provides a viable path for deploying sophisticated text processing on resource-constrained edge devices. While the model currently faces challenges in conditions with uneven illumination or low contrast, its massive reduction in size and increase in speed make it an ideal candidate for low-power applications in smart vehicles and mobile technology. Future work will focus on improving robustness through more diverse synthetic training data.

Summary updated

BibTeX
@misc{liu2016binary,
  author = {Zichuan Liu and Yixing Li and Fengbo Ren and Hao Yu},
  title = {{A Binary Convolutional Encoder-decoder Network for Real-time Natural Scene Text Processing}},
  year = {2016},
  eprint = {1612.03630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.03630},
}
Figure