{"notes":[{"id":"text-detection/textfusenet","category":"text-detection","legacyPath":"text-detection/2009-textfusenet","legacySlug":"2009-textfusenet","legacyPaths":[],"title":"TextFuseNet","subtitle":"A Beautiful Fusion of Three Feature Types","author":"Z. Yuan","paperDate":"2020","publishedOn":"2024-09-14","paperTitle":"TextFuseNet: Scene Text Detection with Richer Fused Features","paperUrl":"https://doi.org/10.24963/ijcai.2020/72","bibliography":{"title":"TextFuseNet: Scene Text Detection with Richer Fused Features","authors":["Jian Ye","Zhe Chen","Juhua Liu","Bo Du"],"url":"https://doi.org/10.24963/ijcai.2020/72","pdfUrl":null,"codeUrl":null,"preprint":null,"publication":{"venue":"IJCAI","year":2020,"kind":"conference","url":"https://doi.org/10.24963/ijcai.2020/72"},"citation":"@inproceedings{textdetectiontextfusenet2020,\n  title = {{TextFuseNet: Scene Text Detection with Richer Fused Features}},\n  author = {Jian Ye and Zhe Chen and Juhua Liu and Bo Du},\n  year = {2020},\n  booktitle = {IJCAI},\n  url = {https://doi.org/10.24963/ijcai.2020/72},\n  doi = {10.24963/ijcai.2020/72}\n}\n","citationPath":"/content/papers/citations/text-detection/textfusenet.6d2f47c1b808.bib"},"thumbnail":{"src":"/content/papers/assets/81482c12e303bbecce9bb400023a1e451ee2a09ae67efe28b28454a083b54fc0.jpg","width":1722,"height":686},"locale":"en","path":"/content/papers/en/text-detection/textfusenet.db9137b0831d.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"the-second-part-rpn--roialign","text":"The Second Part: RPN + RoIAlign","depth":3},{"id":"the-third-part-text-region-prediction-branch-semantic-segmentation-branch","text":"The Third Part: Text Region Prediction Branch (Semantic Segmentation Branch)","depth":3},{"id":"the-fourth-part-character-level-detection-branch-detection-branch","text":"The Fourth Part: Character-Level Detection Branch (Detection Branch)","depth":3},{"id":"the-fifth-part-character-level-segmentation-branch-mask-branch","text":"The Fifth Part: Character-Level Segmentation Branch (Mask Branch)","depth":3},{"id":"multi-path-feature-fusion","text":"Multi-Path Feature Fusion","depth":3},{"id":"weak-supervision-learning","text":"Weak Supervision Learning","depth":3},{"id":"training-datasets","text":"Training Datasets","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"visualization","text":"Visualization","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-detection/craft","relation":"comparison","topic":"Grouping characters and text components"},{"id":"text-detection/drrg","relation":"comparison","topic":"Grouping characters and text components"}]},{"id":"text-detection/craft","category":"text-detection","legacyPath":"text-detection/1904-craft","legacySlug":"1904-craft","legacyPaths":[],"title":"CRAFT","subtitle":"The Craft of Text","author":"Z. Yuan","paperDate":"2019-04-03","publishedOn":"2024-09-14","paperTitle":"Character Region Awareness for Text Detection","paperUrl":"https://arxiv.org/abs/1904.01941","bibliography":{"title":"Character Region Awareness for Text Detection","authors":["Youngmin Baek","Bado Lee","Dongyoon Han","Sangdoo Yun","Hwalsuk Lee"],"url":"https://arxiv.org/abs/1904.01941","pdfUrl":"https://arxiv.org/pdf/1904.01941","codeUrl":null,"preprint":{"id":"1904.01941","submittedOn":"2019-04-03","url":"https://arxiv.org/abs/1904.01941"},"publication":{"venue":"CVPR","year":2019,"kind":"conference","url":"https://arxiv.org/abs/1904.01941"},"citation":"@misc{textdetectioncraft2019,\n  title = {{Character Region Awareness for Text Detection}},\n  author = {Youngmin Baek and Bado Lee and Dongyoon Han and Sangdoo Yun and Hwalsuk Lee},\n  year = {2019},\n  eprint = {1904.01941},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1904.01941}\n}\n","citationPath":"/content/papers/citations/text-detection/craft.9339a46a41c9.bib"},"thumbnail":{"src":"/content/papers/assets/23aa86e47496a2a8c7efbb29e374c0d0d4a2d9c85ff7ba25a14dbc2fb58d5007.jpg","width":2181,"height":2310},"locale":"en","path":"/content/papers/en/text-detection/craft.750c964a9e55.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution-approach","text":"Solution Approach","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"label-generation","text":"Label Generation","depth":3},{"id":"weak-supervision-learning","text":"Weak Supervision Learning","depth":3},{"id":"word-level-bounding-boxes","text":"Word-Level Bounding Boxes","depth":3},{"id":"curved-text-polygons","text":"Curved Text Polygons","depth":3},{"id":"training-datasets","text":"Training Datasets","depth":3},{"id":"training-strategy","text":"Training Strategy","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"visualization","text":"Visualization","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-detection/drrg","relation":"comparison","topic":"Grouping characters and text components"},{"id":"text-detection/textfusenet","relation":"comparison","topic":"Grouping characters and text components"}]},{"id":"text-detection/drrg","category":"text-detection","legacyPath":"text-detection/2003-drrg","legacySlug":"2003-drrg","legacyPaths":[],"title":"DRRG","subtitle":"A first look at GCN","author":"Z. Yuan","paperDate":"2020-03-17","publishedOn":"2024-12-08","paperTitle":"Deep Relational Reasoning Graph Network for Arbitrary Shape Text Detection","paperUrl":"https://arxiv.org/abs/2003.07493","bibliography":{"title":"Deep Relational Reasoning Graph Network for Arbitrary Shape Text Detection","authors":["Shi-Xue Zhang","Xiaobin Zhu","Jie-Bo Hou","Chang Liu","Chun Yang","Hongfa Wang","Xu-Cheng Yin"],"url":"https://arxiv.org/abs/2003.07493","pdfUrl":"https://arxiv.org/pdf/2003.07493","codeUrl":null,"preprint":{"id":"2003.07493","submittedOn":"2020-03-17","url":"https://arxiv.org/abs/2003.07493"},"publication":{"venue":"CVPR","year":2020,"kind":"conference","url":"https://arxiv.org/abs/2003.07493"},"citation":"@misc{textdetectiondrrg2020,\n  title = {{Deep Relational Reasoning Graph Network for Arbitrary Shape Text Detection}},\n  author = {Shi-Xue Zhang and Xiaobin Zhu and Jie-Bo Hou and Chang Liu and Chun Yang and Hongfa Wang and Xu-Cheng Yin},\n  year = {2020},\n  eprint = {2003.07493},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2003.07493}\n}\n","citationPath":"/content/papers/citations/text-detection/drrg.a689d577b87c.bib"},"thumbnail":{"src":"/content/papers/assets/7f65ed561e78695572f8751aacdcb0033cdc33d5926dec733cffa9363404f6dd.jpg","width":1602,"height":532},"locale":"en","path":"/content/papers/en/text-detection/drrg.7cd78f3e0ba0.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":"feature-extraction","text":"Feature Extraction","depth":3},{"id":"text-component-definition","text":"Text Component Definition","depth":3},{"id":"text-component-prediction","text":"Text Component Prediction","depth":3},{"id":"loss-function-calculation","text":"Loss Function Calculation","depth":3},{"id":"generating-local-graphs","text":"Generating Local Graphs","depth":3},{"id":"filtering-redundant-samples","text":"Filtering Redundant Samples","depth":3},{"id":"graph-convolutional-network","text":"Graph Convolutional Network","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"visualization-results","text":"Visualization Results","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-detection/craft","relation":"comparison","topic":"Grouping characters and text components"},{"id":"text-detection/textfusenet","relation":"comparison","topic":"Grouping characters and text components"}]}],"text":"We found the publication year, 2020, but could not pin down its month. The GitHub repository showed a September 2020 upload, so we filed the note under that month. If we found the wrong date, please tell us.\n\n- [**ying09/TextFuseNet**](https://github.com/ying09/TextFuseNet)\n\n## Problem Definition\n\n![problem](/content/papers/assets/d47798fd6302c29018b0e28ee41f83ba081f8e361a0cca466a0a164c839d36c6.jpg)\n\nThe scene text detection problem has largely been framed as a segmentation task. Segmentation tasks are highly susceptible to interference from the background, especially in complex scenes where unexpected objects may occlude the text, significantly reducing the model's performance.\n\nTo improve model robustness, the authors of this paper also took a feature fusion approach. They argue that features should include:\n\n1. **Character-level features**: Shapes, sizes, and orientations of characters.\n2. **Word-level features**: Contextual and background information of the text.\n3. **Image-level features**: Overall characteristics of the entire image.\n\nThey proposed a novel model called TextFuseNet, which extracts these three types of features and fuses them together.\n\n## Solution\n\n### Model Architecture\n\n![model arch](/content/papers/assets/81482c12e303bbecce9bb400023a1e451ee2a09ae67efe28b28454a083b54fc0.jpg)\n\nThe model might look a bit complicated, but let’s break it down into five parts:\n\n1. **Backbone + Neck**: A standard setup using ResNet-50 as the backbone network and FPN (Feature Pyramid Network) as the neck.\n2. **RPN**: The network responsible for generating candidate text regions, employing an RPN (Region Proposal Network) and RoIAlign.\n3. **Head 1**: Semantic segmentation branch, supplying global semantic features and segmentation results.\n4. **Head 2**: Detection branch, classifying words and characters and regressing their bounding boxes.\n5. **Head 3**: Mask branch, performing instance segmentation for words and characters.\n\n---\n\nThe first part is quite familiar, so let’s focus on the second part onwards.\n\n\n> [!TIP]\n> \n> For those unfamiliar with FPN, you can refer to our [**FPN**](/blog/papers/feature-fusion/fpn) introduction.\n\n\n---\n\n### The Second Part: RPN + RoIAlign\n\nThe authors borrowed ideas from Mask R-CNN and Mask TextSpotter, using an RPN to generate text proposals for subsequent detection and segmentation branches. These proposals are refined via semantic segmentation and multi-layer feature extraction for final text detection.\n\n- [**[17.03] Mask R-CNN**](https://arxiv.org/abs/1703.06870)\n- [**[19.08] Mask TextSpotter**](https://arxiv.org/abs/1908.08207)\n\nThe RPN predicts objectness scores and box offsets relative to predefined anchors on FPN feature maps. Applying those offsets produces candidate regions; the network does not generate the reference anchors themselves from scratch.\n\nOnce the RPN generates text region proposals, RoIAlign is used to extract different features, enabling simultaneous word and character detection.\n\n---\n\n### The Third Part: Text Region Prediction Branch (Semantic Segmentation Branch)\n\nThis branch extracts global semantic features for text and background across the scene. When text blends into the background or has an irregular shape, that wider context can help detection. A 1×1 convolution aligns the channel counts of FPN features from different levels; the feature maps are then resized to the same size and fused.\n\n---\n\n### The Fourth Part: Character-Level Detection Branch (Detection Branch)\n\nThis branch detects words and characters from the text proposals. At this stage it fuses word-level and global features; character-level features can enter only after characters have been detected. RoIAlign samples aligned proposal features without the quantization error of traditional RoIPooling. Classification and bounding-box regression then locate both words and characters.\n\n\n> [!NOTE]\n> \n> RoIAlign was introduced in Mask R-CNN to address quantization errors in RoIPooling.\n\n\n---\n\n### The Fifth Part: Character-Level Segmentation Branch (Mask Branch)\n\nThe mask branch performs instance segmentation for detected words and characters. It predicts masks for their shapes, which helps with irregular text. Once the detection branch has found the instances, the mask branch fuses character-, word-, and global-level features along multiple paths to generate their masks.\n\n### Multi-Path Feature Fusion\n\n![multi-fusion](/content/papers/assets/3814ac241724af4c8cd5a3a4a4d5d9dbfb6d6bb2ae4da8360c23ea865632f578.jpg)\n\nThe multi-path feature fusion architecture is the key innovation of this model, as it fuses character, word, and global features to improve both detection and segmentation accuracy.\n\n1. **Fusion in the Detection Branch**:\n\n   In the detection branch, TextFuseNet extracts global and word-level features for each text proposal. Global features come from the semantic segmentation branch, while word-level features come from the FPN.\n\n   For each text proposal, RoIAlign samples global and word-level features into 7×7 outputs. Then, these features are fused using element-wise summation.\n\n   After fusion, the features are further processed through 3×3 and 1×1 convolution layers, used for classification and bounding box regression.\n\n2. **Fusion in the Mask Branch**:\n\n   In the mask branch, for each word proposal, the character attributes are computed using the formula:\n\n   $$\n   C_i = \\left\\{c_j\\;\\middle|\\;\\frac{\\operatorname{Area}(b_i \\cap b_j)}{\\operatorname{Area}(b_j)} > T\\right\\}\n   $$\n\n   Here $b_i$ is word box $i$, $b_j$ is character box $j$, and $T=0.8$. The fraction measures how much of the character box lies inside the word box; it is not IoU.\n\n   RoIAlign samples character features into 14×14 outputs, and these character-level features are fused via element-wise summation. The fused features are further processed by 3×3 and 1×1 convolutions to generate the final character features.\n\n3. **Three-Level Feature Fusion**:\n\n   Finally, character-level, word-level, and global semantic features are fused. RoIAlign extracts corresponding features, which are combined and further refined through convolution layers. These fused and processed features generate richer, more distinctive representations for text instance segmentation.\n\n\n> [!TIP]\n> \n> After reviewing this section, we can't help but think—this fusion method is likely quite slow in practice...\n\n\n### Weak Supervision Learning\n\nA common challenge for models involving character-level detection and segmentation is the lack of annotated data. Like CRAFT, the authors of TextFuseNet used weak supervision learning to address this issue. Readers interested in this method can refer to our previous introduction:\n\n- [**[19.04] CRAFT: Character Region Awareness for Text Detection**](/blog/papers/text-detection/craft)\n\n---\n\nFirst, the authors pre-trained TextFuseNet on a dataset with complete character and word annotations, obtaining a pre-trained model $M$ capable of detecting both characters and words.\n\nNext, they applied model $M$ to a dataset $A$ annotated only at the word level to detect potential character samples. For each image in dataset $A$, the pre-trained model generated a set of character candidates $R$, defined as follows:\n\n$$\nR = \\{r_0(c_0, s_0, b_0, m_0), r_1(c_1, s_1, b_1, m_1), \\cdots , r_i(c_i, s_i, b_i, m_i), \\cdots \\}\n$$\n\nWhere $r_i$ represents the $i$-th character candidate, $c_i$ is the predicted character class, $s_i$ is the confidence score, $b_i$ is the character bounding box, and $m_i$ is the character mask.\n\nThe authors keep candidates whose confidence score exceeds 0.1 and whose mask overlaps a word-level ground-truth region by more than 0.8 of the character-mask area. The accepted samples serve as character-level labels alongside the word-level annotations for fine-tuning.\n\n### Training Datasets\n\n- **SynthText**\n\n  A large-scale synthetic dataset containing about 800,000 images, used for pre-training the model. These images combine natural scenes with randomly generated text in various fonts, sizes, colors, and orientations, closely mimicking real-world scenarios.\n\n- **CTW1500**\n\n  A challenging dataset for curved text detection, consisting of 1,000 training images and 500 test images. Unlike traditional text datasets, CTW1500 includes text instances annotated with 14-point polygons, capable of describing arbitrarily curved text shapes.\n\n- **Total-Text**\n\n  A newly released dataset for curved text detection, comprising horizontal, multi-oriented, and curved text instances. The benchmark includes 1,255 training images and 300 test images.\n\n- **ICDAR 2013**\n\n  A dataset from the Reading Competition, consisting of 229 training images and 233 test images, all in high resolution. English text is annotated with rectangular boxes at the word level.\n\n- **ICDAR 2015**\n\n  A popular text detection dataset containing 1,500 images, with 1,000 for training and the rest for testing. Text regions are annotated using quadrilateral bounding boxes with four vertices.\n\n## Discussion\n\n### Ablation Study\n\nThe authors introduced two modules to improve text detection performance in TextFuseNet compared to the original Mask R-CNN:\n\n1. **Multi-Level Feature Representation (MFR)**: Extracts character-, word-, and global-level features.\n2. **Multi-Path Feature Aggregation (MFA)**: Fuses these three levels into richer features for text detection.\n\nTo validate the effectiveness of these two modules, the authors conducted an ablation study on the ICDAR 2015 and Total-Text datasets. Three different models were prepared for each dataset:\n\n- **Baseline**: The original Mask R-CNN trained model.\n- **MFR**: Mask R-CNN model with Multi-Level Feature Representation (MFR).\n- **MFR+MFA**: The complete TextFuseNet model with both MFR and MFA.\n\nResNet-50 with FPN was used as the backbone network in these models.\n\n---\n\n![ablation](/content/papers/assets/2a1748742c86f2991d98a5e61185eda575b97771fcb9aeabb7a7442700745210.jpg)\n\nAs shown above, **MFR** alone improves both precision and recall. Against the baseline, F-measure increases by 2.8 percentage points on ICDAR 2015 and 2.7 points on Total-Text.\n\nAdding **MFA** to MFR brings a further 1.8 and 1.6 percentage-point gain on ICDAR 2015 and Total-Text, respectively. Against the baseline, the complete model gains 4.6 and 4.3 points. These ablations support a contribution from both modules in the tested settings.\n\n### Comparison with Other Methods\n\n![compare](/content/papers/assets/6d450bcac8acdb041c544a6dfa75fe847b2afdf95911ec1a6df72eb8f3e55af3.jpg)\n\nAs shown in the last two dataset groups, TextFuseNet's F-measure exceeds the earlier methods listed for CTW-1500 and Total-Text.\n\nOn CTW-1500, TextFuseNet with ResNet-50 reaches 85.4% F-measure, 1.7 percentage points above the listed PAN result of 83.7%. With ResNet-101 it reaches 86.6%, 2.9 points above PAN.\n\nOn Total-Text, the ResNet-50 version reaches 85.3%, 0.3 points above the listed PAN result of 85.0%; ResNet-101 reaches 87.1%, 2.1 points above PAN. These are strong F-measures on the two arbitrary-shape text benchmarks. The FPS figures across methods use different GPUs, so they are not controlled speed comparisons.\n\n### Visualization\n\n![visualization](/content/papers/assets/53bf225afc6acd97ada4c8320da5783085543640cb6c14dfe64e86cc283ca476.jpg)\n\nPanels (a) through (d) show ICDAR 2013, ICDAR 2015, Total-Text, and CTW-1500 detections. They illustrate text at different scales and shapes.\n\n## Conclusion\n\nThis paper introduced TextFuseNet, an innovative framework designed for detecting arbitrarily shaped text by combining character-level, word-level, and global semantic features. This multi-level feature fusion approach indeed enhances the model's ability to represent complex text shapes, achieving leading performance on datasets like CTW-1500 and Total-Text.\n\nFrom the experimental results, TextFuseNet demonstrates strong capabilities in handling intricate text shapes and achieves encouraging results, showcasing the potential of this method.\n\n\n> [!TIP]\n> \n> Sadly, it is a bit slow. As engineers, we probably cannot hand in this architecture for most jobs without first checking the actual latency budget and hardware.\n","imageSizes":{"/content/papers/assets/d47798fd6302c29018b0e28ee41f83ba081f8e361a0cca466a0a164c839d36c6.jpg":{"width":1172,"height":472},"/content/papers/assets/81482c12e303bbecce9bb400023a1e451ee2a09ae67efe28b28454a083b54fc0.jpg":{"width":1722,"height":686},"/content/papers/assets/3814ac241724af4c8cd5a3a4a4d5d9dbfb6d6bb2ae4da8360c23ea865632f578.jpg":{"width":1224,"height":748},"/content/papers/assets/2a1748742c86f2991d98a5e61185eda575b97771fcb9aeabb7a7442700745210.jpg":{"width":1632,"height":366},"/content/papers/assets/6d450bcac8acdb041c544a6dfa75fe847b2afdf95911ec1a6df72eb8f3e55af3.jpg":{"width":1828,"height":724},"/content/papers/assets/53bf225afc6acd97ada4c8320da5783085543640cb6c14dfe64e86cc283ca476.jpg":{"width":1632,"height":686}}}
