{"notes":[{"id":"text-recognition/rare","category":"text-recognition","legacyPath":"text-recognition/1603-rare","legacySlug":"1603-rare","legacyPaths":[],"title":"RARE","subtitle":"Automatic Rectification","author":"Z. Yuan","paperDate":"2016","publishedOn":"2024-10-08","paperTitle":"Robust Scene Text Recognition With Automatic Rectification","paperUrl":"https://openaccess.thecvf.com/content_cvpr_2016/html/Shi_Robust_Scene_Text_CVPR_2016_paper.html","bibliography":{"title":"Robust Scene Text Recognition With Automatic Rectification","authors":["Baoguang Shi","Xinggang Wang","Pengyuan Lyu","Cong Yao","Xiang Bai"],"url":"https://openaccess.thecvf.com/content_cvpr_2016/html/Shi_Robust_Scene_Text_CVPR_2016_paper.html","pdfUrl":"https://openaccess.thecvf.com/content_cvpr_2016/papers/Shi_Robust_Scene_Text_CVPR_2016_paper.pdf","codeUrl":null,"preprint":null,"publication":{"venue":"CVPR","year":2016,"kind":"conference","url":"https://openaccess.thecvf.com/content_cvpr_2016/html/Shi_Robust_Scene_Text_CVPR_2016_paper.html"},"citation":"@inproceedings{textrecognitionrare2016,\n  title = {{Robust Scene Text Recognition With Automatic Rectification}},\n  author = {Baoguang Shi and Xinggang Wang and Pengyuan Lyu and Cong Yao and Xiang Bai},\n  year = {2016},\n  booktitle = {CVPR},\n  url = {https://openaccess.thecvf.com/content_cvpr_2016/html/Shi_Robust_Scene_Text_CVPR_2016_paper.html}\n}\n","citationPath":"/content/papers/citations/text-recognition/rare.e993d8c6fce6.bib"},"thumbnail":{"src":"/content/papers/assets/ede56fcdf7e421a6d8418d322e7a516326d84123169b83be8f9badb72fbb994e.jpg","width":1224,"height":496},"locale":"en","path":"/content/papers/en/text-recognition/rare.8f2b9e1a4f82.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"spatial-transformer-network","text":"Spatial Transformer Network","depth":3},{"id":"localization-network","text":"Localization Network","depth":3},{"id":"grid-generator","text":"Grid Generator","depth":3},{"id":"sampler","text":"Sampler","depth":3},{"id":"encoder-decoder","text":"Encoder-Decoder","depth":3},{"id":"dictionary-assisted-recognition","text":"Dictionary-Assisted Recognition","depth":3},{"id":"model-training","text":"Model Training","depth":3},{"id":"evaluation-metrics","text":"Evaluation Metrics","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-recognition/sar","relation":"comparison","topic":"Recognizing curved or irregular text"},{"id":"text-recognition/dan","relation":"comparison","topic":"Recognizing curved or irregular text"}]},{"id":"text-recognition/sar","category":"text-recognition","legacyPath":"text-recognition/1811-sar","legacySlug":"1811-sar","legacyPaths":[],"title":"SAR","subtitle":"2D Attention Mechanism","author":"Z. Yuan","paperDate":"2018-11-02","publishedOn":"2024-10-11","paperTitle":"Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition","paperUrl":"https://arxiv.org/abs/1811.00751","bibliography":{"title":"Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition","authors":["Hui Li","Peng Wang","Chunhua Shen","Guyu Zhang"],"url":"https://arxiv.org/abs/1811.00751","pdfUrl":"https://arxiv.org/pdf/1811.00751","codeUrl":null,"preprint":{"id":"1811.00751","submittedOn":"2018-11-02","url":"https://arxiv.org/abs/1811.00751"},"publication":{"venue":"AAAI","year":2019,"kind":"conference","url":"https://arxiv.org/abs/1811.00751"},"citation":"@misc{textrecognitionsar2018,\n  title = {{Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition}},\n  author = {Hui Li and Peng Wang and Chunhua Shen and Guyu Zhang},\n  year = {2018},\n  eprint = {1811.00751},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1811.00751}\n}\n","citationPath":"/content/papers/citations/text-recognition/sar.429fd6a175f4.bib"},"thumbnail":{"src":"/content/papers/assets/5d30550b9ceceb13eae308e5c7eae88d7f1a5baf19ef43fa90066a49c0011976.jpg","width":1604,"height":516},"locale":"en","path":"/content/papers/en/text-recognition/sar.602eff8a1e77.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":"encoder","text":"Encoder","depth":3},{"id":"decoder","text":"Decoder","depth":3},{"id":"2d-attention-mechanism","text":"2D Attention Mechanism","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":{"2d-attention-mechanism-1":"2d-attention-mechanism"},"guide":null,"relatedReading":[{"id":"text-recognition/rare","relation":"comparison","topic":"Recognizing curved or irregular text"},{"id":"text-recognition/dan","relation":"comparison","topic":"Recognizing curved or irregular text"}]},{"id":"text-recognition/dan","category":"text-recognition","legacyPath":"text-recognition/1912-dan","legacySlug":"1912-dan","legacyPaths":[],"title":"DAN","subtitle":"They Cannot Be Together","author":"Z. Yuan","paperDate":"2019-12-21","publishedOn":"2024-10-17","paperTitle":"Decoupled Attention Network for Text Recognition","paperUrl":"https://arxiv.org/abs/1912.10205","bibliography":{"title":"Decoupled Attention Network for Text Recognition","authors":["Tianwei Wang","Yuanzhi Zhu","Lianwen Jin","Canjie Luo","Xiaoxue Chen","Yaqiang Wu","Qianying Wang","Mingxiang Cai"],"url":"https://arxiv.org/abs/1912.10205","pdfUrl":"https://arxiv.org/pdf/1912.10205","codeUrl":null,"preprint":{"id":"1912.10205","submittedOn":"2019-12-21","url":"https://arxiv.org/abs/1912.10205"},"publication":{"venue":"AAAI","year":2020,"kind":"conference","url":"https://arxiv.org/abs/1912.10205"},"citation":"@misc{textrecognitiondan2019,\n  title = {{Decoupled Attention Network for Text Recognition}},\n  author = {Tianwei Wang and Yuanzhi Zhu and Lianwen Jin and Canjie Luo and Xiaoxue Chen and Yaqiang Wu and Qianying Wang and Mingxiang Cai},\n  year = {2019},\n  eprint = {1912.10205},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1912.10205}\n}\n","citationPath":"/content/papers/citations/text-recognition/dan.d39e18024fa7.bib"},"thumbnail":{"src":"/content/papers/assets/e53f7bec264bbeb70e49cb487f7356d7b9d8b657cecebf15e670b6f48aaa7cfe.jpg","width":1478,"height":420},"locale":"en","path":"/content/papers/en/text-recognition/dan.a745c7f9e7b0.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"attention-loss","text":"Attention Loss","depth":3},{"id":"coupled-output","text":"Coupled Output","depth":3},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"feature-extraction","text":"Feature Extraction","depth":3},{"id":"alignment-module","text":"Alignment Module","depth":3},{"id":"decoupled-decoder-module","text":"Decoupled Decoder Module","depth":3},{"id":"handwriting-recognition-training-strategy","text":"Handwriting Recognition Training Strategy","depth":3},{"id":"datasets","text":"Datasets","depth":4},{"id":"scene-text-recognition-training-strategy","text":"Scene Text Recognition Training Strategy","depth":3},{"id":"datasets-1","text":"Datasets","depth":4},{"id":"discussion","text":"Discussion","depth":2},{"id":"handwritten-text-recognition-performance","text":"Handwritten Text Recognition Performance","depth":3},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"alignment-error-analysis","text":"Alignment Error Analysis","depth":3},{"id":"recognition-error-analysis","text":"Recognition Error Analysis","depth":3},{"id":"scene-text-recognition-performance","text":"Scene Text Recognition Performance","depth":3},{"id":"robustness-study","text":"Robustness Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-recognition/rare","relation":"comparison","topic":"Recognizing curved or irregular text"},{"id":"text-recognition/sar","relation":"comparison","topic":"Recognizing curved or irregular text"}]}],"text":"CRNN solved most of the problems we had discussed, but irregular text recognition was still beyond its reach.\n\n## Defining the Problem\n\nRecognizing text in natural scenes is much harder than recognizing printed text. During recognition, text can often appear distorted, warped, occluded, or blurred.\n\nIn this paper, the authors focus on addressing the problems of deformation and distortion. Remember that famous STN model from a while back?\n\n- [**[15.06] Spatial Transformer Networks**](https://arxiv.org/abs/1506.02025)\n\n\n\n    ![stn](/content/papers/assets/6f098fa7285150b8a8250b316496ddf083cceac392a1f97105bfe2459be2f021.jpg)\n\n\n\nMaybe we could design a model with automatic rectification functionality?\n\n## Solving the Problem\n\n### Spatial Transformer Network\n\n![model arch](/content/papers/assets/ede56fcdf7e421a6d8418d322e7a516326d84123169b83be8f9badb72fbb994e.jpg)\n\nTo alleviate the issue of recognizing irregular text, the automatic rectification functionality should be placed before the recognition module.\n\nHere, the authors introduce a Spatial Transformer Network (STN) to rectify the input image.\n\nThe primary goal of the STN is to transform the input image $I$ into a rectified image $I'$ using a predicted Thin Plate Spline (TPS) transformation. This network predicts a set of control points through a localization network, calculates TPS transformation parameters from these points, and generates a sampling grid that is used to produce the rectified image $I'$ from the input image.\n\n### Localization Network\n\nThe localization network is responsible for locating $K$ control points. Its output is the coordinates of these control points in $x$ and $y$, denoted as:\n\n$$\nC = [c_1, \\dots, c_K] \\in \\mathbb{R}^{2 \\times K}, c_k = [x_k, y_k]^\\top\n$$\n\nThe coordinate system’s center is set at the center of the image, and the coordinate values range from $[-1, 1]$.\n\nThe network uses a convolutional neural network to regress the control points’ positions. The output layer consists of $2K$ nodes, using the tanh activation function to ensure the output values fall within the $(-1, 1)$ range.\n\nThe network is fully supervised by backpropagated gradients from the other parts of the STN, so no manual labeling of control point coordinates is required.\n\n### Grid Generator\n\n![tps](/content/papers/assets/4ae674d719ee694b7be155663c33106e945f85192c13554ea3934b6837d0aa3b.jpg)\n\nAs the figure shows, the authors fix a set of base control points $C^\\prime$ along the top and bottom edges of the rectified image. The localization network predicts their corresponding positions $C$ in the input image. Together, these define a TPS sampling map from output coordinates back to input coordinates.\n\nThe grid generator estimates the TPS transformation parameters and produces the sampling grid. The TPS transformation parameters are represented by a matrix $T \\in \\mathbb{R}^{2 \\times (K+3)}$, calculated as:\n\n$$\nT = \\left( \\Delta_{C^\\prime}^{-1}\n\\begin{bmatrix}\nC^\\top \\\\\n0^{3 \\times 2}\n\\end{bmatrix}\n\\right)^\\top\n$$\n\nHere, $\\Delta_{C^\\prime} \\in \\mathbb{R}^{(K+3) \\times (K+3)}$ is a matrix determined by the control points $C^\\prime$, thus being a constant matrix.\n\nThe specific form of $\\Delta_{C^\\prime}$ is:\n\n$$\n\\Delta_{C^\\prime} =\n\\begin{bmatrix}\n1^{K \\times 1} & (C^\\prime)^{\\top} & R \\\\\n0 & 0 & 1^{1 \\times K} \\\\\n0 & 0 & C^\\prime\n\\end{bmatrix}\n$$\n\nWhere the element $r_{i,j}$ in the matrix $R$ is defined as:\n\n$$\nr_{i,j} = d_{i,j}^2 \\ln d_{i,j}^2,\n$$\n\nHere, $d_{i,j}$ represents the Euclidean distance between the $i^{th}$ and $j^{th}$ control points $c^\\prime_i$ and $c^\\prime_j$.\n\nThe pixel grid on the rectified image $I'$ is denoted as $P' = \\{p'_i\\}_{i=1, \\dots, N}$, where $p'_i = [x'_i, y'_i]^{\\top}$ is the $x$ and $y$ coordinates of the $i^{th}$ pixel, and $N$ is the number of pixels in the image.\n\nFor each pixel $p'_i$ in $I'$, its corresponding pixel $p_i = [x_i, y_i]^{\\top}$ in the input image $I$ is determined by the following transformation:\n\n1. First, calculate the distance between $p'_i$ and the control points:\n\n   $$\n   r'_{i,k} = d_{i,k}^2 \\ln d_{i,k}^2,\n   $$\n\n   Where $d_{i,k}$ is the Euclidean distance between $p'_i$ and the $k^{th}$ control point $c^\\prime_k$.\n\n2. Next, construct the augmented vector $\\hat{p}'_i$:\n\n   $$\n   \\hat{p}'_i = \\left[ 1, x'_i, y'_i, r'_{i,1}, \\dots, r'_{i,K} \\right]^{\\top}.\n   $$\n\n3. Finally, use the matrix operation below to map it to the point $p_i$ on the input image:\n\n   $$\n   p_i = T \\hat{p}'_i.\n   $$\n\nBy applying the above steps to all the pixels in the rectified image $I'$, a pixel grid $P = \\{p_i\\}_{i=1, \\dots, N}$ on the input image $I$ is generated.\n\nSince the matrix $T$ calculation and the transformation of points $p_i$ are differentiable, the grid generator can backpropagate gradients for model training.\n\n\n> [!TIP]\n> \n> The passage above follows the paper. If it is hard to follow, let's set the mathematics aside:\n> \n> Imagine we have a distorted image (perhaps due to the camera angle or other factors). We want to \"flatten\" or \"correct\" it, making its content orderly so that recognition becomes easier.\n> \n> First, the model predicts control points in the input image, while the corresponding points along the rectified image's upper and lower edges stay fixed. We then use Euclidean distances to relate those points to the sampling positions and work out where each rectified pixel should get its value from the original image.\n> \n> This \"flattening\" does not just move each image point at random. It follows a smooth rule so the transformed image stays coherent, although the result still depends on the control points the model learns.\n> \n> That’s what the matrix $T$ and those distance formulas are doing.\n\n\n### Sampler\n\nThe sampler uses bilinear interpolation to generate the rectified image $I'$ from the input image $I$ based on pixel values.\n\nFor each pixel $p'_i$ in the rectified image $I'$, its value is calculated through bilinear interpolation of the nearby pixels in the input image $I$.\n\nThis process is also differentiable, so recognition errors can be passed back to the rectification module. The sampled result looks like this:\n\n\n\n![sampler](/content/papers/assets/cbde9a73435bf47def4cb0b769ef274fd473e4331f855a6c2749e278d41f8b0e.jpg)\n\n\n\n### Encoder-Decoder\n\n\n\n![encoder](/content/papers/assets/569f8ecff318cf131953743c5dafbfa9e916cf3c362e4ea278a8a6a7c1ca1881.jpg)\n\n\n\nAfter completing the automatic correction of the image, we return to the familiar recognition process.\n\nFirst comes the encoder, which follows the familiar CRNN pattern: a CNN backbone converts the rectified image into a feature sequence, then a BiLSTM models that sequence.\n\nNext comes the decoder. The original CRNN uses CTC to turn frame-wise predictions into text; this paper instead uses an attention-based GRU to generate characters one step at a time.\n\n\n> [!TIP]\n> \n> GRU and LSTM are similar recurrent architectures. At the same hidden size, a GRU generally has fewer parameters. This paper does not directly compare their training speeds.\n\n\nFor the decoding part, the authors integrated an attention mechanism. At each time step $t$, the decoder calculates an attention weight vector $\\alpha_t \\in \\mathbb{R}^L$, where $L$ is the length of the input sequence.\n\nThe formula for calculating the attention weights is as follows:\n\n$$\n\\alpha_t = \\text{Attend}(s_{t-1}, \\alpha_{t-1}, h)\n$$\n\nWhere:\n\n- $s_{t-1}$ is the hidden state of the GRU unit from the previous time step.\n- $\\alpha_{t-1}$ is the attention weight vector from the previous time step.\n- $h$ is the encoder’s representation of the input sequence.\n\nThe Attend function calculates the current attention weight vector $\\alpha_t$ based on the previous hidden state $s_{t-1}$ and the previous attention weights $\\alpha_{t-1}$. Each element of this vector is non-negative, and the sum of all elements equals 1, representing the importance of each element in the input sequence for the current decoding step.\n\nOnce $\\alpha_t$ is computed, the model generates a vector called the glimpse vector $g_t$, which is the weighted sum of the encoded representation $h$ of the input sequence.\n\nThe formula for the glimpse vector is:\n\n$$\ng_t = \\sum_{i=1}^{L} \\alpha_{ti} h_i\n$$\n\nWhere:\n\n- $\\alpha_{ti}$ is the $i$-th element of the attention weight vector $\\alpha_t$.\n- $h_i$ is the encoded representation of the $i$-th element of the input sequence.\n\nThe glimpse vector $g_t$ represents the weighted sum of the parts of the input sequence that the model is currently focusing on.\n\nSince $\\alpha_t$ is a probability distribution (with all elements being non-negative and summing to 1), the glimpse vector $g_t$ is a weighted combination of the input sequence’s features. This allows the decoder to focus on different parts of the input sequence depending on the current decoding step.\n\nAfter computing the glimpse vector $g_t$, the decoder uses the GRU’s recursive formula to update the hidden state $s_t$:\n\n$$\ns_t = \\text{GRU}(l_{t-1}, g_t, s_{t-1})\n$$\n\nWhere:\n\n- $l_{t-1}$ is the label from the previous time step.\n- During training, this is the actual label.\n- During testing, this is the predicted label from the previous time step $\\hat{l}_{t-1}$.\n- $g_t$ is the glimpse vector calculated using the attention mechanism, representing the part of the input the model is focusing on.\n- $s_{t-1}$ is the hidden state of the GRU from the previous time step.\n\nThe GRU unit updates the current hidden state $s_t$ based on the previous label $l_{t-1}$, the current glimpse vector $g_t$, and the previous hidden state $s_{t-1}$, encoding the relationship between the current step’s output and the input information.\n\nAt each time step, the decoder predicts the next output character based on the updated hidden state $s_t$. The output $\\hat{y}_t$ is a probability distribution over all possible characters, including a special \"End of Sequence\" (EOS) symbol. Once the model predicts EOS, the sequence generation process is complete.\n\n### Dictionary-Assisted Recognition\n\nThe final output might still contain some errors. The authors use a dictionary to aid recognition. They compare the results with and without the dictionary.\n\nWhen testing images with an associated dictionary, the model selects the word with the highest conditional posterior probability:\n\n$$\nl^* = \\arg \\max_l \\log \\prod_{t=1}^{|l|} p(l_t | I; \\theta).\n$$\n\nWhen the dictionary is very large (e.g., a Hunspell dictionary containing over 50k words), checking each word’s probability can be computationally expensive. Therefore, the authors adopt a prefix tree for efficient approximate search, as shown below:\n\n\n\n![prefix](/content/papers/assets/09f345c585c7c6f579914381d9c138c799eac3890eceb855c3bfeb0839a54f91.jpg)\n\n\n\nEach node represents a character, and the path from the root to the leaf represents a word.\n\nDuring testing, starting from the root node, the highest posterior probability sub-node is selected at each step based on the model’s output distribution, continuing until reaching a leaf node. The corresponding path is the predicted word.\n\nSince the tree's depth does not exceed the length of the longest word in the dictionary, this method takes less computation than searching every word individually. For lexicons larger than 1k words, the experiments also use beam search with width 7 to retain multiple candidate paths.\n\n### Model Training\n\nThe authors used a synthetic dataset released by Jaderberg et al. as training data for scene text recognition:\n\n- [**Text Recognition Data**](https://www.robots.ox.ac.uk/~vgg/data/text/): This dataset contains 8 million training images with corresponding annotated text. These images are generated by a synthetic engine and are highly realistic.\n\nNo additional data was used.\n\nThe batch size during training was set to 64, and the image size was adjusted to $100 \\times 32$ during both training and testing. The STN's output size was also $100 \\times 32$. The model processes approximately 160 samples per second and converged after 3 epochs, which took about 2 days.\n\n### Evaluation Metrics\n\nThe authors evaluated the model's performance using four common scene text recognition benchmark datasets:\n\n1. **ICDAR 2003 (IC03)**\n\n   - The test set contains 251 scene images with labeled text bounding boxes.\n   - For fair comparison with previous works, text images containing non-alphanumeric characters or less than three characters are usually ignored. After filtering, 860 cropped text images remain for testing.\n   - Each test image is accompanied by a 50-word lexicon (dictionary). Additionally, a **full lexicon** is provided, which merges the lexicons of all images for evaluation.\n\n2. **ICDAR 2013 (IC13)**\n\n   - The test set inherits and corrects part of the IC03 data. After applying the IC03 filtering rules, this paper evaluates on 857 cropped word images.\n   - Unlike IC03, IC13 does not provide a lexicon, so evaluations are done without dictionary assistance (i.e., in a no-dictionary setting).\n\n3. **IIIT 5K-Word (IIIT5k)**\n\n   - The test set contains 3,000 cropped text images collected from the web, covering varied fonts and backgrounds.\n   - Each image comes with two lexicons: a small dictionary containing 50 words and a large dictionary containing 1,000 words for dictionary-assisted evaluation.\n\n4. **Street View Text (SVT)**\n\n   - The test set comprises 249 scene images from Google Street View, cropped into 647 text images.\n   - Each text image is accompanied by a 50-word lexicon for dictionary-assisted evaluation.\n\n## Discussion\n\n### Comparison with Other Methods\n\n![compare](/content/papers/assets/30698f2473804faed6c9827b08e3c5f8e88f296607f32fa57e61e3a10e9d1b05.jpg)\n\nThe table above compares recognition accuracy across the benchmark datasets. Among genuinely lexicon-free models, RARE scores higher than CRNN on IIIT5K, SVT, IC03, and IC13. Some larger Jaderberg et al. [17] numbers shown under \"None\" still rely on a 90k-word dictionary.\n\nWithout a lexicon on IIIT5K, RARE scores 81.9%, or 3.7 percentage points above CRNN【32】 at 78.2%. The authors suggest that the irregular text in IIIT5K is one reason the rectification module can help.\n\nAlthough the model falls behind the method in【17】on some datasets, RARE is able to recognize random strings (such as phone numbers), while the model in【17】is limited to recognizing words within its 90k-word dictionary.\n\nWith lexicon assistance, RARE scores slightly below CRNN on the IIIT5K, SVT, and IC03 settings, though it remains competitive with【17】. The lexicon-free gain should not be carried over to these settings. The RARE (SRN only) row also shows a gain in all four lexicon-free columns after adding rectification.\n\n\n> [!TIP]\n> \n> At that time, it wasn't common to name your theoretical approach or method. Hence, we often see naming conventions based on the author's name, such as method 【17】 in the table, which refers to Jaderberg et al.'s paper:\n> \n> - [**[14.12] Reading text in the wild with convolutional neural networks**](https://arxiv.org/abs/1412.1842)\n\n\n## Conclusion\n\nThis paper primarily addresses the problem of recognizing irregular text by introducing a differentiable Spatial Transformer Network (STN) module to automatically rectify irregular text and achieve end-to-end training, achieving good performance on several benchmark datasets.\n\nThe authors also pointed out that the model performs poorly on \"extremely curved\" text, possibly due to the lack of corresponding data types in the training set, which presents an opportunity for future improvements.\n\n\n\n![prefix](/content/papers/assets/c182bbfe6d5066ed81929df33e89d5573a0a422153b2412fbac5b97b9b43d7db.jpg)\n\n\n\n\n> [!TIP]\n> \n> Around 2020, we attempted to deploy this model, but encountered difficulties when converting it to ONNX format, mainly because ONNX did not support `grid_sample` or `affine_grid_generator` at that time.\n> \n> We did not pursue the model further after that. If you have successfully deployed it, please share your experience with us.\n","imageSizes":{"/content/papers/assets/6f098fa7285150b8a8250b316496ddf083cceac392a1f97105bfe2459be2f021.jpg":{"width":1068,"height":836},"/content/papers/assets/ede56fcdf7e421a6d8418d322e7a516326d84123169b83be8f9badb72fbb994e.jpg":{"width":1224,"height":496},"/content/papers/assets/4ae674d719ee694b7be155663c33106e945f85192c13554ea3934b6837d0aa3b.jpg":{"width":1024,"height":356},"/content/papers/assets/cbde9a73435bf47def4cb0b769ef274fd473e4331f855a6c2749e278d41f8b0e.jpg":{"width":984,"height":844},"/content/papers/assets/569f8ecff318cf131953743c5dafbfa9e916cf3c362e4ea278a8a6a7c1ca1881.jpg":{"width":924,"height":1080},"/content/papers/assets/09f345c585c7c6f579914381d9c138c799eac3890eceb855c3bfeb0839a54f91.jpg":{"width":940,"height":576},"/content/papers/assets/30698f2473804faed6c9827b08e3c5f8e88f296607f32fa57e61e3a10e9d1b05.jpg":{"width":1564,"height":770},"/content/papers/assets/c182bbfe6d5066ed81929df33e89d5573a0a422153b2412fbac5b97b9b43d7db.jpg":{"width":932,"height":1080}}}
