Paper commentary
EAST: An Efficient and Accurate Scene Text Detector
EAST trains one network to detect scene text directly in full images
- Problem Scene text detectors chain many separately tuned stages, which makes them slow and weak on hard scenes. Each stage depends on the others, so errors add up across the pipeline.
- Method EAST is a single fully convolutional network that predicts a score map and box geometry for every pixel. Unlike multi-stage pipelines, it needs only thresholding and Locality-Aware NMS afterwards.
- Results On ICDAR 2015, EAST reaches an F-score of 0.7820 at 13.2 fps at 720p resolution. The paper reports that it outperforms state-of-the-art methods in both accuracy and efficiency.
Why multi-stage text detectors fall short
Many scene text detectors chain several components, and each one has to be tuned against the others before the whole system works well. Candidate generation, false-positive filtering, line formation and word partitioning all add processing time, and the final quality depends on how these stages interact. Figure 2 places several earlier pipelines next to the single-stage design that EAST uses.
EAST asks whether one fully convolutional network can output word or text-line regions directly, so that only thresholding and merging follow it. Both accuracy and speed are tested against this goal on three public benchmarks: ICDAR 2015, COCO-Text and MSRA-TD500.
One network that outputs a score map and geometry
The design borrows from DenseBox: one pass of the image through the FCN produces several pixel-level channels. One channel is a score map with values in [0, 1]. The remaining channels describe, for each pixel, the geometry of the text box that pixel belongs to, and the score gives the confidence in that geometry at that location. Two geometry types are tried, RBOX and QUAD, and each has its own loss.
After prediction, pixels whose score is above a preset threshold keep their geometries. Those geometries are merged by Locality-Aware NMS, and the merged result is the final output.
Why merge features from several levels
Word sizes vary widely. Large words need late, semantically rich features to be detected, while accurate boxes for small words need early, high-resolution detail. HyperNet provides features at these levels, but concatenating many channels on large maps is expensive in the later stages. The authors instead take the U-shape idea and merge feature maps step by step, keeping the up-sampling branches small.
The network has three parts: a feature extractor stem pre-trained on ImageNet, a feature-merging branch and an output layer. The stem yields four feature levels, denoted f_i, from the input image. PV ANET is the stem shown in the figure, and the experiments also use VGG16 with the feature maps after pooling-2 to pooling-5.
The merging follows two recurrences. The first level starts from h_1 = f_1, and for i greater than 1, h_i is computed as conv3×3 applied to conv1×1 of the concatenation of g_{i-1} and f_i. Here g_i is unpool(h_i) for i up to 3, and conv3×3(h_4) for i = 4, so each stage doubles the size of the previous map before concatenation. \\[ g_i = \\begin{cases} \\mathrm{unpool}(h_i) & i \\le 3 \\\\ \\mathrm{conv}_{3\\times3}(h_i) & i = 4 \\end{cases} \\qquad h_i = \\begin{cases} f_i & i = 1 \\\\ \\mathrm{conv}_{3\\times3}(\\mathrm{conv}_{1\\times1}([g_{i-1}; f_i])) & \\text{otherwise} \\end{cases} \\]
The output layer uses conv1×1 layers to project the 32-channel merged map into one score channel F_s and a multi-channel geometry map F_g. The channel counts in the merging branch are kept small, which keeps its cost modest next to the stem.
Encoding each pixel's box as RBOX or QUAD
QUAD uses eight channels, each pair giving the coordinate shift from the pixel to one of the four vertices.
Building score and geometry targets
For a quadrangle with vertices p_i in clockwise order, each vertex gets a reference length r_i, defined as the smaller of two L2 distances from p_i to other vertices, with D denoting the L2 distance. The positive region is a shrunken copy of the quadrangle. The two longer opposing edges are shrunk first, then the two shorter ones, and each edge has its endpoints moved inward by 0.3 r_i and 0.3 r_(i mod 4)+1.
For RBOX ground truth, datasets annotated with quadrangles, such as ICDAR 2015, are fitted with a rotated rectangle of minimum area. Each positive pixel then records its distances to the four sides of that rectangle, while QUAD ground truth stores the coordinate shifts from the vertices.
Why the losses are scale-aware
The total loss is the score loss plus a weighted geometry loss, with the geometry weight λ_g set to 1 in the experiments. \\[ L = L_s + \\lambda_g L_g \\]
The score map uses class-balanced cross-entropy, where the positive and negative terms are weighted by β and 1 minus β. \\[ L_s = \\text{balanced-xent}(\\hat{Y}, Y^*) = -\\beta Y^* \\log \\hat{Y} - (1-\\beta)(1-Y^*)\\log(1-\\hat{Y}) \\] \\[ \\beta = 1 - \\frac{\\sum_{y^* \\in Y^*} y^*}{|Y^*|} \\] Since β is one minus the mean label value, a rare positive class gives β close to 1 and so gives the positive term more weight.
L1 or L2 regression would favour large and long text, so the IoU loss is used for the AABB part of RBOX, because it does not depend on the object's scale. \\[ L_{AABB} = -\\log \\mathrm{IoU}(\\hat{R}, R^*) = -\\log \\frac{|\\hat{R} \\cap R^*|}{|\\hat{R} \\cup R^*|} \\] The intersection width and height are sums of two minima over the predicted and true distances, w_i = min(d̂_2, d*_2) + min(d̂_4, d*_4) and h_i = min(d̂_1, d*_1) + min(d̂_3, d*_3), and the union area is the sum of the two box areas minus the intersection.
The angle is trained with a loss of 1 minus the cosine of the difference between the predicted and true angles. \\[ L_\\theta(\\hat{\\theta}, \\theta^*) = 1 - \\cos(\\hat{\\theta} - \\theta^*) \\qquad L_g = L_{AABB} + \\lambda_\\theta L_\\theta \\] The weight λ_θ is set to 10, and L_AABB is computed regardless of the rotation angle, which the authors note still gives a useful gradient even though the angle is not perfectly predicted during training.
QUAD regression extends the smoothed-L1 loss with a normalization by the shorter edge length of the quadrangle, which makes it scale-normalized. \\[ N_{Q^*} = \\min_{i=1}^{4} D(p_i, p_{(i \\bmod 4)+1}) \\] The loss takes the minimum over all equivalent quadrangles with different vertex orderings, because annotations of quadrangles in the public training sets are inconsistent.
Training schedule
The network is trained end-to-end with ADAM, using 512×512 crops sampled uniformly from images to form minibatches of 24. The learning rate starts at 1e-3, is divided by ten every 27300 minibatches, and stops at 1e-5, with training continuing until performance stops improving.
Merging geometries with Locality-Aware NMS
Locality-Aware NMS merges geometries row by row, merging each geometry with the last merged one while scanning a row. This runs in O(n) in the best case and matches naive NMS in the worst case, but it is fast in practice when geometries from nearby pixels are highly correlated. A single-line image illustrates the correlation: a strong network makes all its geometries overlap heavily.
When two geometries are merged, the coordinates are weighted by the two scores, and the merged score is the sum of the two scores. \\[ a_i = V(g)\\, g_i + V(p)\\, p_i \\qquad V(a) = V(g) + V(p) \\] Averaging rather than selecting acts as a voting step, which the authors credit with stability on video, while the procedure is still called NMS.
The full procedure keeps a current merged geometry p, emits it when the next geometry does not merge, and applies standard NMS to the collected set.
ICDAR 2015 results
ICDAR 2015 Challenge 4 contains 1500 pictures, of which 1000 are for training and the rest for testing, with quadrangle annotations taken from incidental capture. The authors also used the 229 training images from ICDAR 2013.
At original scale, Ours + PV ANET2x with RBOX output reaches recall 0.7347, precision 0.8357 and F-score 0.7820. The Yao et al. [41] row in the same table has an F-score of 0.6477.
Multi-scale testing runs the same network at relative scales of 0.5, 0.7, 1.0, 1.4 and 2.0. This raises the F-score to 0.8072, which the authors describe as nearly 0.16 above the 0.6477 of Yao et al. [41].
Other settings in the same table are Ours + PV ANET2x QUAD at 0.7707, Ours + VGG16 RBOX at 0.7641 and Ours + VGG16 QUAD at 0.7401. Against Yao et al. [41], the VGG16 setting improves by 0.0924 with QUAD output and by 0.116 with RBOX output.
On ICDAR 2013, Ours + PV ANET2x reaches recall 0.8267, precision 0.9264 and F-score 0.8737. The authors describe this as comparable to Tian et al. [34], whose recall, precision and F-score are 0.8298, 0.9298 and 0.8769.
COCO-Text results
COCO-Text contains 63,686 annotated images, with 43,686 for training and 20,000 for testing, and word regions annotated as axis-aligned boxes. For this dataset the angle θ is set to zero.
The best COCO-Text setting is Ours + VGG16, with recall 0.324, precision 0.5039 and F-score 0.3945, against 0.3331 for Yao et al. [41]. Ours + PV ANET2x reaches F-score 0.3701 and Ours + PV ANET reaches 0.3424 in the same table. The F-score gain over Yao et al. [41] is 0.0614 and the recall gain is 0.053.
The baselines A, B and C taken from the COCO-Text paper were used in its annotation, so the authors treat them as invalid baselines.
MSRA-TD500 results and the VGG16 gap
MSRA-TD500 has 300 training and 200 test images, with arbitrary-orientation text annotated at sentence level in English and Chinese.
Ours + PV ANET2x reaches recall 0.6743, precision 0.8728 and F-score 0.7608. That F-score is slightly higher than the 0.7591 of Yao et al. [41]. Against Zhang et al. [48], which the authors call the previously published state of the art, the best setting improves F-score by 0.0208 and precision by 0.0428.
Speed on a Titan X
Speeds are averages over 500 ICDAR 2015 test images at 1280x720, run on a single Titan X with an Intel E5-2670 v3 CPU. Post-processing covers thresholding and NMS, and T1 is the network prediction time while T2 is the post-processing time.
Ours + PV ANET takes 58.1 ms for T1 and 1.5 ms for T2, giving 16.8 FPS at 720p. Ours + PV ANET2x takes 73.8 ms and 1.7 ms, giving 13.2 FPS, and Ours + VGG16 takes 150.9 ms and 2.4 ms, giving 6.52 FPS. The theoretical FLOPs per pixel are 18KOps for PV ANET, 44.4KOps for PV ANET2x and 331.6KOps for VGG16.
The table also lists Yao et al. [41] at 1.61 FPS on a K40m at 480p, Tian et al. [34] at 7.14 FPS with short side 600 on a GPU, and Zhang et al. [48] at 0.476 FPS with multi-scale testing on a Titan X. Those competitors ran on different hardware, resolutions and scales, so their timings are not from the same controlled setup as the EAST rows.
Limitations
The largest text instance the detector can handle is proportional to the receptive field of the network, so very long text lines across an image are hard to predict. Vertical text may be missed or localized imprecisely, because it makes up only a small part of the ICDAR 2015 training set.
Curved text, integration with a text recognizer and extension to general object detection are listed as future work and were not tested. The best setting differs by benchmark: VGG16 is best on COCO-Text, while PV ANET2x is best on ICDAR 2015 and MSRA-TD500.
Paper info
- Authors
- Xinyu Zhou, Cong Yao, He Wen, Yuzhi Wang, Shuchang Zhou, Weiran He, Jiajun Liang
- Venue
- arXiv · Preprint
- First published
- 2017-4-11
- Added
- 2026-11-12
- Updated
- 2017-7-10
- Version
- v2
- arXiv
- 1704.03155
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Xinyu Zhou, Cong Yao, He Wen, Yuzhi Wang, Shuchang Zhou, Weiran He, Jiajun Liang (2017). EAST: An Efficient and Accurate Scene Text Detector. arXiv:1704.03155v2. https://arxiv.org/abs/1704.03155v2
BibTeX
@misc{zhou2017east,
title = {{EAST: An Efficient and Accurate Scene Text Detector}},
author = {Xinyu Zhou and Cong Yao and He Wen and Yuzhi Wang and Shuchang Zhou and Weiran He and Jiajun Liang},
year = {2017},
eprint = {1704.03155},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1704.03155v2}
}