{"notes":[{"id":"text-detection/east","category":"text-detection","legacyPath":"text-detection/1704-east","legacySlug":"1704-east","legacyPaths":[],"title":"EAST","subtitle":"Simplifying Text Detection","author":"Z. Yuan","paperDate":"2017-04-11","publishedOn":"2024-09-12","paperTitle":"EAST: An Efficient and Accurate Scene Text Detector","paperUrl":"https://arxiv.org/abs/1704.03155","bibliography":{"title":"EAST: An Efficient and Accurate Scene Text Detector","authors":["Xinyu Zhou","Cong Yao","He Wen","Yuzhi Wang","Shuchang Zhou","Weiran He","Jiajun Liang"],"url":"https://arxiv.org/abs/1704.03155","pdfUrl":"https://arxiv.org/pdf/1704.03155","codeUrl":null,"preprint":{"id":"1704.03155","submittedOn":"2017-04-11","url":"https://arxiv.org/abs/1704.03155"},"publication":{"venue":"CVPR","year":2017,"kind":"conference","url":"https://arxiv.org/abs/1704.03155"},"citation":"@misc{textdetectioneast2017,\n  title = {{EAST: An Efficient and Accurate Scene Text Detector}},\n  author = {Xinyu Zhou and Cong Yao and He Wen and Yuzhi Wang and Shuchang Zhou and Weiran He and Jiajun Liang},\n  year = {2017},\n  eprint = {1704.03155},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1704.03155}\n}\n","citationPath":"/content/papers/citations/text-detection/east.9a7d7acefe80.bib"},"thumbnail":{"src":"/content/papers/assets/d785e4ba458390f1464f258abd03fb80522ca38b5470d406667872070b09e5e8.jpg","width":1064,"height":1080},"locale":"en","path":"/content/papers/en/text-detection/east.866cbf877b6f.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"label-generation","text":"Label Generation","depth":3},{"id":"loss-function","text":"Loss Function","depth":3},{"id":"training-strategy","text":"Training Strategy","depth":3},{"id":"locally-aware-nms","text":"Locally Aware NMS","depth":3},{"id":"benchmark-datasets","text":"Benchmark Datasets","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"icdar-2015","text":"ICDAR 2015","depth":3},{"id":"coco-text","text":"COCO-Text","depth":3},{"id":"msra-td500","text":"MSRA-TD500","depth":3},{"id":"visualization-results","text":"Visualization Results","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"feature-fusion/unet","relation":"referenced","topic":""}]},{"id":"feature-fusion/unet","category":"feature-fusion","legacyPath":"feature-fusion/1505-unet","legacySlug":"1505-unet","legacyPaths":[],"title":"U-Net","subtitle":"The Dawn of Integration","author":"Z. Yuan","paperDate":"2015-05-18","publishedOn":"2024-08-15","paperTitle":"U-Net: Convolutional Networks for Biomedical Image Segmentation","paperUrl":"https://arxiv.org/abs/1505.04597","bibliography":{"title":"U-Net: Convolutional Networks for Biomedical Image Segmentation","authors":["Olaf Ronneberger","Philipp Fischer","Thomas Brox"],"url":"https://arxiv.org/abs/1505.04597","pdfUrl":"https://arxiv.org/pdf/1505.04597","codeUrl":null,"preprint":{"id":"1505.04597","submittedOn":"2015-05-18","url":"https://arxiv.org/abs/1505.04597"},"publication":{"venue":"MICCAI","year":2015,"kind":"conference","url":"https://doi.org/10.1007/978-3-319-24574-4_28"},"citation":"@misc{featurefusionunet2015,\n  title = {{U-Net: Convolutional Networks for Biomedical Image Segmentation}},\n  author = {Olaf Ronneberger and Philipp Fischer and Thomas Brox},\n  year = {2015},\n  eprint = {1505.04597},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1505.04597}\n}\n","citationPath":"/content/papers/citations/feature-fusion/unet.b015405a1c46.bib"},"thumbnail":{"src":"/content/papers/assets/0b302bf8ed079d85b3a07562463380875eb3d9dfc631684549000c38d16a5f38.jpg","width":1224,"height":824},"locale":"en","path":"/content/papers/en/feature-fusion/unet.cd213004394b.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"discussion","text":"Discussion","depth":2},{"id":"isbi-cell-tracking-challenge-2015","text":"ISBI Cell Tracking Challenge 2015","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"segmentation/fcn","relation":"background","topic":"Dense prediction and encoder-decoder skip connections"},{"id":"feature-fusion/unetpp","relation":"next","topic":"Dense prediction and encoder-decoder skip connections"},{"id":"feature-fusion/trans-unet","relation":"comparison","topic":"Encoder-decoder features across scales"}]}],"text":"Fully convolutional networks made dense, pixel-level prediction practical. They did not by themselves solve large text-scale variation; multi-scale feature fusion helps combine local detail with broader context.\n\nU-Net’s combination of features from different depths offered a useful pattern for dense prediction, which EAST adapts for text detection. Once the tools were in place, researchers naturally found somewhere to put them to work. Text detection followed this trend, too.\n\n## Defining the Problem\n\n![problem](/content/papers/assets/37339095199ca935372a96d00440a2fc505ed842f0135fb1981cffc9700098c2.jpg)\n\nThe image above summarizes the various text detection methods explored in previous studies. Most approaches require multiple steps, such as computing text region features, determining text direction, merging regions, or relying on handcrafted features like stroke width or maximally stable extremal regions.\n\nBut it is not only you who dislikes all those steps; the authors do, too. They want a simpler, more efficient method.\n\n## Solving the Problem\n\nSince the size of text regions varies greatly, detecting large text areas requires high-level features from deeper layers of a neural network, while accurately predicting the geometry of small text areas relies on low-level features from earlier layers. Thus, a model needs to fuse multi-scale features.\n\n### Model Architecture\n\n![solution](/content/papers/assets/d785e4ba458390f1464f258abd03fb80522ca38b5470d406667872070b09e5e8.jpg)\n\nIn the above diagram, the yellow block on the far left is the replaceable backbone. **The figure shows PVANet**; the experiments also use VGG16 and PVANET2x, a PVANet with twice as many channels.\n\nThe green block borrows U-Net’s U-shaped, layer-by-layer feature fusion, with fewer channels in its upsampling branch. For the underlying idea, see:\n\n- [**[15.05] U-Net: The Dawn of Integration**](/blog/papers/feature-fusion/unet)\n\nThe prediction head uses the highest-resolution fused feature map, at **one-quarter of the input image resolution**. It has a one-channel SCORE map paired with **one of two** alternative geometry representations, RBOX or QUAD; the two are not required simultaneously.\n\n![head](/content/papers/assets/3f10b8e017118851641eb773e145f0ebc5f404e09d01befcc3603637e5392032.jpg)\n\n1. **RBOX**: Outputs 5 channels: distances from a pixel to the four sides of a rotated rectangle, plus its rotation angle. These are four distances, not four separate bounding boxes.\n2. **QUAD**: Outputs 8 channels: the $\\Delta x$ and $\\Delta y$ offsets from the pixel to each of the quadrilateral's four vertices.\n3. **SCORE**: Outputs 1 channel indicating whether the location belongs to a text region.\n\nThe concept is illustrated in the following image:\n\n![output](/content/papers/assets/123d324475672b662c10005a3871eaae17b7cd30853658917c1290b39e73155d.jpg)\n\n### Label Generation\n\n1. **Generating the Score Map for Quadrilaterals**\n\n   In the case of quadrilateral-shaped text areas, the score map's positive region is designed as a smaller version of the original quadrilateral, as shown in image (a) above. For a quadrilateral $Q = \\{p_i | i ∈ \\{1, 2, 3, 4\\} \\}$, where $p_i = \\{x_i, y_i\\}$ are the vertices arranged in clockwise order:\n\n   The quadrilateral shrinking process is as follows:\n\n   1. Calculate the reference length $r_i$ for each vertex $p_i$ using the formula:\n\n      $$\n      r_i = \\min(D(p_i, p_{(i \\mod 4)+1}), D(p_i, p_{((i+2) \\mod 4)+1}))\n      $$\n\n      Where $D(p_i, p_j)$ is the L2 distance between two vertices.\n\n   2. Shrink the longer sides first, then the shorter sides.\n   3. For each pair of opposite sides, the longer one is determined by comparing their mean lengths.\n   4. For each side, $p_i$ and $p_{(i \\mod 4)+1}$ are shrunk by moving their endpoints inward by $0.3r_i$ and $0.3r_{(i \\mod 4)+1}$, respectively.\n\n2. **Generating the Geometry Maps**\n\n   The geometry maps can represent either RBOX or QUAD. The process for generating RBOX is shown in images (c-e) above.\n\n   For datasets that use quadrilateral annotations (e.g., ICDAR 2015), the authors first generate a minimal area rotated rectangle to cover the region. For each pixel with a positive score, the distance to the four boundaries of the text box is calculated and placed into the 4 channels of the RBOX geometry.\n\n   For QUAD, each pixel with a positive score will have values in the 8-channel geometry map, representing the offset from the pixel to the four vertices of the quadrilateral.\n\n### Loss Function\n\nThe total loss function is given by:\n\n$$\nL = L_s + λ_g L_g\n$$\n\nWhere $L_s$ represents the score map loss, $L_g$ represents the geometry map loss, and $λ_g$ balances the two, with $λ_g = 1$ used in experiments.\n\n- **Score Map Loss**\n\n  Many detection methods use balanced sampling and hard negative mining to address the imbalance in object distribution. While these techniques improve performance, they introduce non-differentiable processes and additional hyperparameters. To simplify training, the authors used a class-balanced cross-entropy loss:\n\n  $$\n  L_s = \\text{balanced-xent}( \\hat{Y}, Y^* )\n  $$\n\n  $$\n  = -β Y^* \\log \\hat{Y} - (1 - β)(1 - Y^*) \\log(1 - \\hat{Y})\n  $$\n\n  Where $\\hat{Y}$ is the predicted score map, $Y^*$ is the ground truth, and $β$ is the balancing factor for positive and negative samples:\n\n  $$\n  β = 1 - \\frac{\\sum_{y^* \\in Y^*} y^*}{|Y^*|}\n  $$\n\n  This balanced cross-entropy was first used by Yao et al. for text detection and proved effective.\n\n  - [**[16.06] Scene Text Detection via Holistic, Multi-Channel Prediction**](https://arxiv.org/abs/1606.09002)\n\n- **RBOX Loss**\n\n  A major challenge in text detection is the wide variation in text sizes. Using $L_1$ or $L_2$ losses directly can result in larger loss values for larger text areas. To ensure scale-invariant geometric predictions, the authors used an IoU loss for the axis-aligned bounding box (AABB) part of RBOX:\n\n  $$\n  L_{\\text{AABB}} = -\\log \\text{IoU}( \\hat{R}, R^* ) = -\\log \\frac{| \\hat{R} \\cap R^* |}{| \\hat{R} \\cup R^* |}\n  $$\n\n  Where $\\hat{R}$ is the predicted AABB geometry and $R^*$ is the ground truth.\n\n  The loss for the rotation angle is:\n\n  $$\n  L_{\\theta}( \\hat{\\theta}, \\theta^* ) = 1 - \\cos( \\hat{\\theta} - \\theta^* )\n  $$\n\n  The total geometry loss is the weighted sum of the AABB and angle losses:\n\n  $$\n  L_g = L_{\\text{AABB}} + λ_{\\theta} L_{\\theta}\n  $$\n\n  With $λ_{\\theta}$ set to 10 in experiments.\n\n- **QUAD Loss**\n\n  For QUAD, the authors normalize Smooth L1 coordinate errors by the shortest side length, reducing their dependence on text scale. This is useful for elongated word quadrilaterals.\n\n  The ordered set of quadrilateral coordinates is:\n\n  $$\n  C_Q = \\{x_1, y_1, x_2, y_2, ..., x_4, y_4\\}\n  $$\n\n  The loss function is:\n\n  $$\n  L_g = L_{\\text{QUAD}}( \\hat{Q}, Q^* )\n  $$\n\n  $$\n  = \\min_{Q' \\in P_{Q^*}} \\sum_{c_i \\in C_Q, c'_i \\in C_{Q'}} \\frac{\\text{smooth L1}( c_i - c'_i )}{8 \\times N_{Q^*}}\n  $$\n\n  Where $N_{Q^*}$ is the length of the shortest side of the quadrilateral:\n\n  $$\n  N_{Q^*} = \\min_{i=1}^{4} D( p_i, p_{(i \\mod 4)+1} )\n  $$\n\n  $P_Q$ represents all possible vertex orderings, accounting for inconsistent annotation orders in public datasets.\n\n### Training Strategy\n\nThe network is trained end-to-end using the ADAM optimizer. To accelerate learning, 512x512 image crops are sampled uniformly, with a batch size of 24. The learning rate starts at $1 \\times 10^{-3}$ and is multiplied by one-tenth every 27,300 minibatches until it reaches $1 \\times 10^{-5}$.\n\n**Training continues until no further performance improvement is observed.**\n\n\n> [!TIP]\n> \n> This is a \"train till the end\" approach.\n\n\n### Locally Aware NMS\n\nAfter thresholding, the remaining geometries need to be merged using Non-Maximum Suppression (NMS).\n\nTraditional NMS has a time complexity of $O(n^2)$, where $n$ is the number of candidate geometries. This is impractical for dense predictions, which can involve tens of thousands of geometries.\n\n---\n\nAssuming that geometries in nearby pixels are highly correlated, the authors proposed a \"row-wise merging\" method.\n\nIn row-first order, the current geometry is iteratively merged with the previous accumulated geometry when they should merge. **Standard NMS then runs on the remaining set.** The local merge takes $O(n)$ in the best case; the worst case remains $O(n^2)$ like traditional NMS. In practice, locality keeps the remaining set small enough to make the procedure useful.\n\nThe detailed process is as follows:\n\n- [**LA-NMS Code Implementation**](https://github.com/foamliu/EAST/blob/master/lanms/lanms.h)\n\n![nms](/content/papers/assets/2b9c694c5146af88885b94e3f494565b681f76931acf3cbcb8fa25ec69952cb0.jpg)\n\nUnlike traditional NMS, this method uses \"weighted averaging\" to merge geometries, rather than \"selecting\" one geometry, essentially creating a voting mechanism. However, for simplicity, the authors still use the term \"NMS\" since the core functionality remains the merging and suppression of redundant geometries.\n\nIn the `WEIGHTEDMERGE(g, p)` function, the vertex coordinates of two polygons $g$ and $p$ are averaged based on their scores. If the merged polygon is denoted as $a$, the coordinates of each vertex $a_i$ are calculated as the weighted average of the original vertices $g_i$ and $p_i$, using the formula:\n\n$$\na_i = \\frac{V(g)g_i + V(p)p_i}{V(g)+V(p)}\n$$\n\nWhere:\n\n- $V(g)$ and $V(p)$ are the scores of polygons $g$ and $p$, respectively.\n- $g_i$ and $p_i$ are the coordinates of the $i$-th vertex of the polygons.\n- $a_i$ is the coordinate of the $i$-th vertex of the merged polygon.\n\nThe total score $V(a)$ of the merged polygon $a$ is the sum of the scores of the two original polygons:\n\n$$\nV(a) = V(g) + V(p)\n$$\n\n### Benchmark Datasets\n\nTo evaluate the proposed algorithm, the authors conducted experiments on three public benchmark datasets: ICDAR 2015, COCO-Text, and MSRA-TD500.\n\n- **ICDAR 2015**:\n\n  - Contains 1,500 images, with 1,000 for training and 500 for testing.\n  - Text regions are annotated using quadrilaterals, which correspond to the QUAD geometry format used in this paper.\n  - The images are captured by Google Glass, and the text can appear in any orientation, potentially suffering from motion blur or low resolution.\n  - Additionally, 229 training images from ICDAR 2013 were used.\n\n- **COCO-Text**:\n\n  - Described by the paper as the largest text detection dataset at that time, containing 63,686 images, with 43,686 for training and 20,000 for testing.\n  - Text regions are annotated with axis-aligned bounding boxes (AABB), which is a special case of RBOX.\n  - For this dataset, the angle $θ$ is set to 0, and the same data processing and evaluation methods as in ICDAR 2015 are used.\n\n- **MSRA-TD500**:\n  - Contains 300 training images and 200 testing images, with text regions in any orientation and annotated at the sentence level.\n  - The annotation format is RBOX, and the dataset includes both English and Chinese text.\n  - Due to the small number of training images, 400 images from the HUST-TR400 dataset were used for supplementary training.\n\n## Discussion\n\n### ICDAR 2015\n\n![icdar](/content/papers/assets/ab5d09f445fe2bace0670ab1d926b158598c0e568dd90ea0c69904d52c58a5dd.jpg)\n\nWith PVANET2x and RBOX, the single-scale F-score is **0.7820** and multi-scale testing raises it to **0.8072**, against **0.6477** for the prior best method in the table. Under the **VGG16** comparison, QUAD output exceeds that prior method by **0.0924**, and RBOX by about **0.116**. Those are different rows and should not be treated as one configuration.\n\n### COCO-Text\n\n![coco](/content/papers/assets/916dee00d871a97dac1516600f537ae18be0138202fb0d450ada9c81e8801484.jpg)\n\nAgainst Yao et al. [41], **all three EAST backbone settings** have higher F-scores. The VGG16 setting reaches **0.3945**, versus **0.3331** for [41], a gain of **0.0614**; its recall is **0.324**, versus **0.271**, a gain of **0.053**. The table’s A/B/C rows are annotation baselines, not detector comparisons, so the claim should not be extended to every row.\n\n### MSRA-TD500\n\n![msra](/content/papers/assets/b76a8333b1f1ba7dd22bcb7080805a94dbaa5ea266ac1d005928269ac8dc7840.jpg)\n\nUsing PVANET2x, the F-score is **0.7608**. That is **0.0208** above Zhang et al. [48] at 0.74, with precision **0.0428** higher; it is only **0.0017** above Yao et al. [41] at 0.7591. VGG16 is lower (**0.7023** versus **0.7608** for PVANET2x) because MSRA-TD500 evaluates line-level predictions and VGG16’s effective receptive field is smaller.\n\n### Visualization Results\n\n![visual](/content/papers/assets/ca0957701d73e5ba63ecb3c97f49136e96a9ce46272fb1bbf1c4c2774fcebfab.jpg)\n\n## Conclusion\n\nThis paper presents a simple and efficient text detection framework that can detect text regions and generate accurate geometric predictions using a single neural network. This approach eliminates the need for complex multi-step processing, resulting in a lightweight and easily implemented model.\n\nWhile the paper does not extensively discuss the impact of different training techniques, it is unclear which component of the architecture contributes most to the final performance. However, the experimental results demonstrate that the proposed method achieves state-of-the-art performance across three benchmark datasets, highlighting its effectiveness in text detection tasks.\n","imageSizes":{"/content/papers/assets/37339095199ca935372a96d00440a2fc505ed842f0135fb1981cffc9700098c2.jpg":{"width":1742,"height":630},"/content/papers/assets/d785e4ba458390f1464f258abd03fb80522ca38b5470d406667872070b09e5e8.jpg":{"width":1064,"height":1080},"/content/papers/assets/3f10b8e017118851641eb773e145f0ebc5f404e09d01befcc3603637e5392032.jpg":{"width":1224,"height":244},"/content/papers/assets/123d324475672b662c10005a3871eaae17b7cd30853658917c1290b39e73155d.jpg":{"width":1224,"height":864},"/content/papers/assets/2b9c694c5146af88885b94e3f494565b681f76931acf3cbcb8fa25ec69952cb0.jpg":{"width":1164,"height":1080},"/content/papers/assets/ab5d09f445fe2bace0670ab1d926b158598c0e568dd90ea0c69904d52c58a5dd.jpg":{"width":1224,"height":1048},"/content/papers/assets/916dee00d871a97dac1516600f537ae18be0138202fb0d450ada9c81e8801484.jpg":{"width":928,"height":508},"/content/papers/assets/b76a8333b1f1ba7dd22bcb7080805a94dbaa5ea266ac1d005928269ac8dc7840.jpg":{"width":908,"height":644},"/content/papers/assets/ca0957701d73e5ba63ecb3c97f49136e96a9ce46272fb1bbf1c4c2774fcebfab.jpg":{"width":1506,"height":748}}}
