1. Introduction
Text in natural images conveys rich spatial, visual, and semantic information and plays an important role in applications such as intelligent transportation, mobile translation, information retrieval, and human–computer interaction [
1,
2]. Compared with document optical character recognition (OCR), scene text analysis is much more challenging because text may appear against cluttered backgrounds and exhibit perspective distortion, curved layouts, uneven illumination, occlusion, low resolution, and substantial variations in font, scale, and orientation. These complex visual conditions make scene text analysis dependent on both accurate spatial localization and reliable semantic interpretation, rather than on geometric or linguistic modeling alone.
Deep learning has significantly advanced scene text detection and recognition. For detection, segmentation-based methods predict dense text maps and reconstruct text instances at the pixel level, improving the localization of arbitrary-shaped text [
1]. Residual networks and Transformer architectures further enhance multi-scale feature representation and long-range dependency modeling [
3,
4,
5], while deformable attention and focal loss improve query-based localization and dense classification [
6,
7]. For recognition, convolutional recurrent networks, attention-based decoders, language-enhanced models, and Vision Transformer architectures have achieved substantial performance improvements on both regular and irregular text benchmarks. Moreover, recent studies have extended scene text processing from separate detection and recognition toward end-to-end scene text spotting [
2].
Despite recent progress, character-level visual evidence remains insufficiently exploited in both localization and transcription. Most detectors construct text regions or boundary queries mainly from visual and positional features without explicit character semantics, making them vulnerable to background textures and weak boundaries in curved, blurred, or low-contrast scenes. Meanwhile, many recognizers rely on global visual tokens and contextual modeling, where the correspondence between predicted characters and local image regions is only implicitly established. This weak association may lead to excessive dependence on global representations or language priors for distorted or ambiguous characters. Therefore, explicit character-level guidance can enhance semantic-to-geometric interaction in detection and local visual-to-sequential alignment in recognition.
To address these issues, this paper presents a two-branch character-level explicit guidance framework for arbitrary-shaped text detection and recognition (STR). CADet introduces character semantics into boundary-query construction, while SIETR incorporates character-local visual evidence into sequence decoding. The proposed CADet integrates TENet, CIA, and COMP to enhance text representations, guide boundary prediction, and refine localization. The proposed SIETR introduces local visual embeddings into autoregressive recognition through CLIE and joint decoding. Experiments show that the framework achieves F-measures of 79.5%, 89.4%, and 89.2% on ArT, Total-Text, and CTW1500, respectively, with limited computational overhead. Moreover, SIETR obtains 95.6% sample-size-weighted average accuracy with 23.8 M parameters and 3.2 G FLOPs, outperforming PARSeq on most irregular benchmarks.
2. Related Work
This section reviews representative methods of scene text detection and recognition. It first summarizes scene text detection methods from segmentation- and regression-based approaches to Transformer-based detectors, and then discusses scene text recognition methods with emphasis on visual-semantic alignment and local visual evidence.
2.1. Scene Text Detection
Scene text detection methods are commonly classified into regression-based and segmentation-based approaches. Regression-based methods locate text using rectangles, quadrangles, polygons, or control points. Segmentation-based methods predict dense text maps and were later used to describe arbitrary-shaped text regions. TextSnake and pixel aggregation networks improved arbitrary-shaped text detection by representing curved text through center lines, kernels, or progressive grouping [
8,
9]. Polygon offsetting and border-aware segmentation have also been used to separate adjacent arbitrary-shaped text instances [
10]. Character Region Awareness for Text Detection (CRAFT) used character-region affinity to connect local text components [
11]. Differentiable Binarization (DB) simplified post-processing [
12], and Adaptive Bezier-Curve Network (ABCNet) represented curved text using Bezier curves [
13]. These methods established strong foundations for irregular text localization, but dense prediction and post-processing can still be sensitive to background noise, adjacent text instances, and highly variable text scales. Recent advances in multi-modal representation learning have demonstrated the effectiveness of aligning visual information with semantic representations for robust perception [
14]. This method improve feature representation and semantic understanding in complex scenarios that provide valuable inspiration for scene text analysis.
Transformer-based detectors reformulated text detection as query-based prediction. Text Spotting Transformer (TESTR) introduced Transformer representations into text spotting [
15], while Dynamic Points Text Detection Transformer (DPText-DETR) used explicit point queries to model arbitrary-shaped text instances [
16]. SwinTextSpotter explored detection-recognition synergy, and SwinTextSpotter v2 further proposed recognition-guided localization. Recent StarNet-Tex proposed a multi-scale feature enhancement module for lightweight text detection [
17,
18,
19]. Style-aware learning has also been introduced to improve detection robustness under appearance variation [
20]. These methods improved global context modeling and reduced hand-designed post-processing. Nevertheless, most query-based detectors still depended mainly on location and visual features when selecting text candidates. Recognition-level character information was not sufficiently used as an explicit constraint during detection. This limitation can lead to false positives in background regions with text-like texture and missed detections for weak or curved text.
2.2. Scene Text Recognition
Scene text recognition (STR) transcribes cropped text images into character sequences. A convolutional recurrent neural network (CRNN) combined convolutional features with recurrent sequence modeling and connectionist temporal classification [
21]. Later systems introduced attention mechanisms, rectification modules, bidirectional semantic modeling, and language priors. Vision Transformer for Scene Text Recognition (ViTSTR) represented text images as token sequences and achieved efficient recognition [
22]. Autonomous Bidirectional and Iterative Network (ABINet) explicitly modeled language information [
23], and permuted autoregressive sequence modeling (PARSeq) reduced dependence on a single left-to-right decoding order [
24]. Recent recognition studies further show that performance in complex scenes depends on robust visual-semantic alignment, CTC-compatible feature alignment, multi-scale attention, and controlled integration of language cues [
25,
26,
27,
28].
Despite these advances, sequence decoders often depend on global visual tokens and implicit cross-modal attention. This design can be insufficient when adjacent characters are distorted, occluded, or visually similar. Contextual semantics can correct some errors, but they can also introduce visually unsupported predictions. A robust recognizer therefore needs sequence context and explicit local visual information associated with each predicted character. SIETR follows this direction by embedding serialized local image features into the character prediction process. Taken together, these studies confirm that practical OCR systems increasingly require interaction between detection, recognition, restoration, and language constraints rather than isolated modules.
3. Materials and Methods
This section describes the proposed explicit-guidance framework. It first formulates the detection and recognition tasks, then presents the overall framework, the CADet detection branch, the SIETR recognition branch, and the datasets and evaluation metrics used for validation.
3.1. Problem Formulation
Given an input scene image
I, scene text detection estimates a set of text instances
where
denotes the boundary representation of the
ith text instance and
denotes its text confidence. STR then predicts a character sequence
for each detected or cropped text image. The paper studies two aligned tasks, i.e., robust arbitrary-shaped text localization and accurate sequence recognition. The methodological assumption is that detection benefits from explicit character semantics, whereas recognition benefits from explicit character-local image information.
3.2. Overall Framework
Figure 1 summarizes the proposed explicit-guidance strategy. The framework is organized as two branches for a detection-then-recognition scene text analysis pipeline. Its connection lies in the shared explicit character-level guidance principle: semantic information guides spatial localization in CADet, while local visual information grounds sequence prediction in SIETR. The detection branch uses text-enhanced features, boundary sampling points, character information adaptive guidance, and compensation modules to output Bezier-based instances. The recognition branch converts an input word image into visual tokens, learns contextual dependencies with permuted attention masks, embeds local image features into position queries, and predicts the final sequence through a joint decoder.
The proposed framework introduces explicit character-level information at key stages of detection and recognition. In the detection branch, character semantics are incorporated before boundary refinement, helping suppress text-like background patterns and recover weak text instances. In the recognition branch, local image embeddings are introduced before decoding to maintain the correspondence between predictions and character-level visual evidence. Unlike post hoc language correction or purely visual boundary regression, the proposed methods directly constrain recognition with local visual cues and detection with character semantics.
The framework investigates independent information pathways rather than simply stacking modules. Specifically, TENet enhances text-region representations, CIA integrates character semantics into boundary points, COMP refines localization and classification errors, and CLIE provides local visual evidence for decoding. Each module targets a specific challenge in scene text analysis and enables interpretable ablation analysis.
Figure 2 expands the upper branch of
Figure 1. It shows that CADet does not append a recognition cue after detection. Instead, text-enhanced features, sampled boundary points, character guidance, and compensation are arranged before the final Transformer decoding stage. This order is central to the hypothesis tested later: character-level evidence should affect candidate localization while the detector is still forming its spatial query representation.
3.3. Character-Guided Adaptive Text Detection
CADet is built on a Transformer-based arbitrary-shaped text detector. The backbone is TENet, which uses ResNet-50 with text-enhancement blocks to strengthen text-region features and suppress background interference. Multi-scale features are concatenated and passed to a deformable-attention Transformer encoder:
where
denotes the
l-th scale feature after channel projection and spatial flattening, with
and
being the height and width of the
l-th feature map and
being the hidden dimension. Thus,
is obtained by concatenating the three feature sequences along the spatial-token dimension. The sinusoidal positional encoding
is generated at the corresponding spatial locations and has the same dimension as the concatenated feature sequence, enabling element-wise addition before the deformable-attention Transformer encoder. For each prior text box, the upper and lower boundaries are sampled into control points. These points provide Bezier-style geometric priors for arbitrary-shaped text.
The CIA module introduces recognition-level character semantics into candidate queries. For each sampled point, classification features are projected to a probability vector over 26 letters and one non-character class:
where
is the encoded feature at the sampled point and
denotes ReLU activation. The vector
serves as a soft character-semantic descriptor inferred from the sampled-point feature. It encodes alphabetic and non-character responses around the sampled position. After projection by
and adaptive weighting by
, this descriptor is combined with the positional encoding of the sampled control point to form
. Therefore, each explicit point-composite query carries both a Bezier-style geometric prior and local character/non-character cues, allowing CIA to distinguish character-like sampled points from background or blank regions before boundary decoding. The semantic vector is fused with positional information to form an explicit point-composite query:
where
denotes the point-wise character-confidence weight generated by the CIA subnetwork for the
i-th sampled point. It is computed from the sampled-point feature
through the character-information branch and scales
according to the predicted text/character confidence. This query guides the detector to select candidates that are geometrically plausible and semantically text-like.
During training, candidate text instances are assigned to ground-truth text instances by Hungarian matching. The optimization target is the matched text instance, including text confidence and control-point geometry. The CIA branch is optimized through gradient backpropagation of the decoder from the matched-instance detection losses.
The operation in Equation (
5) performs explicit semantic guidance rather than generic feature fusion. As shown in
Figure 3, the sampled text-region features are first processed by the character-information branch and then transformed into a composite query. The non-character channel represents non-text or blank responses around the sampled position, while the character probability distribution provides fine-grained semantic discrimination. By retaining weak but character-consistent candidate points, CIA can improve text-instance recovery and therefore has a greater influence on recall than on precision in the ablation study.
The COMP module corrects the spatial offset and classification confidence of the explicit query. Two zero-initialized lightweight multi-layer perceptrons (MLPs) estimate light residual compensation:
The COMP module is used as residual calibration for the explicit point-composite query. Although
combines sampled control-point geometry and character-semantic evidence, its initial sampled position and classification confidence can still be biased by cluttered background textures or weak text contrast [
2,
16]. Therefore, following the residual-learning principle and the query-refinement [
4,
6,
16], COMP uses two lightweight MLPs as residual prediction functions to estimate
and
. These two terms compensate position-related and classification-related query errors before decoding. The residual outputs are initialized to zero, so
at the beginning of training. Since the residual outputs are initialized to zero, the compensated query is identical to the original query at the start of training, i.e.,
. Thus, COMP does not disturb the original detection query at initialization. During training, the two MLPs, as a query-calibration mechanism, gradually learn only the residual adjustments needed to reduce the matched-instance detection losses. The final detection loss combines focal classification loss, point regression loss, and GIoU supervision:
3.4. Serialized Image Embeddings for Text Recognition
SIETR is designed to strengthen the association between each predicted character and its corresponding image region. The visual encoder follows a ViT-style architecture. Given an input word image
, the image is divided into patches and flattened into visual tokens:
where
P is the patch size,
is the number of patches, and
is learnable positional encoding.
The semantic encoder uses PLM to reduce dependence on a single left-to-right order. The conditional probability of a sequence is written as
while the permuted formulation approximates multiple factorization orders:
In practice, only a limited number of permutations is sampled to avoid factorial growth. The experiments indicate that six permutation masks provide the best overall trade-off.
The CLIE module converts visual tokens into serialized local image embeddings. Visual features are projected into a character-related feature space, top-
local responses are selected, and the selected features are normalized:
Here, denotes the number of retained local visual responses in CLIE. The TopK operation is performed within each cropped word image: after the linear projection, the visual tokens with the highest character-response confidence are retained and normalized as serialized local image embeddings.
During training, we set
to select character-related local visual embeddings of each target position. The target sequence length
T is available from the ground-truth transcription During inference, since the target length is unknown before decoding,
is set to the predefined maximum recognition length
. In our experiments,
is set to 25, following common scene text recognition methods [
23]. The decoder predicts characters autoregressively and stops when the EOS token is generated. Local embeddings corresponding to positions after EOS are ignored. The semantic query
and local image embedding
are fused as
Equation (
12) provides a learned soft-alignment mechanism rather than a hard coordinate assignment. Since
is generated from image patches with learnable positional encoding
, the selected local responses retain spatial context. After
is added to the semantic query
, the fused query
attends to the visual-token sequence in the joint decoder. The recognition loss at each character position then guides the decoder to associate the
t-th query with its relevant local visual region. Therefore, CLIE introduces character-local visual evidence without requiring character-level bounding boxes or explicit coordinate constraints. The joint decoder predicts the output character distribution:
where
is the autoregressive attention mask. The fused query sequence
is denoted as
, where each fused query
combines semantic context and character-local visual evidence as in (12). The recognition loss is the mean cross-entropy between the predicted and ground-truth character sequences:
Figure 4 clarifies the role of CLIE within the recognition branch. The semantic encoder supplies contextual character queries, but the serialized image embedding module reintroduces local image evidence before joint decoding. Thus, the decoder receives both a context-conditioned sequence representation and local visual features. This placement is important for irregular text, where a plausible language sequence may conflict with the actual distorted character image.
3.5. Datasets and Evaluation Metrics
The detection experiments used ArT, Total-Text, and CTW1500 [
29,
30,
31]. ArT contains 10,166 arbitrary-shaped text images, with 5603 training images and 4563 test images. Total-Text contains 1255 training images and 300 test images with horizontal, multi-oriented, and curved text. CTW1500 contains 1000 training images and 500 test images, with long curved text annotated by 14-point polygons. Additional pretraining used Synth150K, ICDAR2017 MLT, and ICDAR2019 LSVT following the same protocol for compared models.
The recognition experiments used nine training datasets, including COCO-Text, RCTW17, Uber-Text, ArT, LSVT, MLT19, ReCTS, TextOCR, and OpenVINO. Evaluation was conducted on IIIT5K, SVT, SVTP, CUTE, ICDAR2013, and ICDAR2015 [
32,
33,
34,
35,
36]. IIIT5K, SVT, and ICDAR2013 represent relatively regular text, while SVTP, CUTE, and ICDAR2015 emphasize perspective distortion, curved text, motion blur, low resolution, and irregular layouts.
The experimental design uses three controls. First, detection comparisons use the same public benchmark splits and the same precision, recall, and F-measure metrics. Second, recognition comparisons report regular and irregular datasets separately, because the proposed local visual embedding is expected to matter more under distortion. Third, parameter and FLOP comparisons are reported with accuracy, so gains can be judged against computational cost rather than accuracy alone.
Detection is evaluated by precision, recall, and F-measure:
Here,
,
, and
denote true positives, false positives, and false negatives, respectively. The reported precision and recall are rounded to one decimal place, and the calculated F-measure is rounded accordingly. Recognition is evaluated by exact-match sequence accuracy:
4. Results
This section reports the experimental results. It first analyzes the contribution of each detection and recognition component through ablation studies, and then compares CADet and SIETR with representative methods on public scene text benchmarks.
4.1. Ablation Analysis for Detection
Table 1 reports the contribution of TENet, CIA, and COMP on ArT and Total-Text. On ArT, replacing ResNet-50 with TENet increased the F-measure from 78.1% to 78.3%. Adding CIA alone raised recall to 75.6%, indicating that recognition-level character semantics helped recover missed text instances. Adding COMP alone improved the F-measure to 78.9%. The complete CADet model achieved the best F-measure of 79.5%. On Total-Text, the complete model achieved the best F-measure of 89.4%, mainly because recall reached 88.0%.
On ArT, TENet+CIA increased recall from 73.8% to 75.6%, whereas TENet+COMP produced a balanced result of 83.5%/74.5%/78.7% in P/R/F, supporting the recall-oriented role of character guidance and the residual-refinement role of COMP. On Total-Text, TENet+CIA raised recall from 88.0% to 88.4%, while TENet+COMP increased precision from 90.3% to 90.7%; both variants reached 89.2% F-measure, and the full model further improved to 89.4%, indicating that the CIA and COMP are complementary.
The ablation pattern shows that the detector gain does not come from a single stronger backbone. On ArT, CIA produced the largest recall increase among the single-module variants, from 73.4% to 75.6%. COMP produced a similar F-measure gain while keeping precision above 82%. The full model combined these effects and improved the baseline F-measure by 1.4 percentage points on ArT. On Total-Text, TENet and the full model both raised recall to 88.0%, while the full model recovered the best F-measure through a better balance between precision and recall.
The feature maps in
Figure 5 provide qualitative support for the TENet component. Compared with the ResNet-50, TENet concentrates activation on text strokes and suppresses non-text background regions around the sign. This visual pattern is consistent with the recall increase in
Table 1, because stronger text-region activation gives the subsequent boundary sampling and character-guidance modules a cleaner candidate set.
4.2. Comparison with Scene Text Detectors
Table 2 compares CADet with representative detection methods. On ArT, CADet achieved a 79.5% F-measure, which was 3.7 percentage points higher than TextBPN++ and 1.4 percentage points higher than DPText-DETR. On Total-Text, CADet obtained an 89.4% F-measure, improving over DPText-DETR by 0.4 percentage points and over SwinTextSpotter by 1.4 percentage points. Compared with recent SwinTextSpotter v2 and StarNet-Tex, CADet achieved gains of 1.7 and 2.9 percentage points on Total-Text, respectively. On CTW1500, CADet achieved an 89.2% F-measure, improving over DPText-DETR by 0.3 percentage points while achieving a gain of 4.1 percentage points compared to the StarNet-Tex. These results show that CADet injects character semantics into boundary-point query construction and applies residual query compensation before decoding, which helps preserve weak and curved text boundaries.
The computational comparison shows that CADet remains within the same parameter and FLOP range as DPText-DETR. CADet uses 45.9 M parameters and 284.5 G FLOPs, compared with 45.8 M parameters and 279.8 G FLOPs for DPText-DETR. The performance gain is therefore not obtained by a large increase in model size.
This comparison is important for deployment-oriented evaluation. The additional character guidance increases computation by 4.7 G FLOPs relative to DPText-DETR, which is about 1.7% of the DPText-DETR cost. The improvement therefore reflects a more informative query representation rather than a substantially larger detector.
Figure 6 further shows the type of instances represented by the ArT improvement. The examples contain curved logos, dense product text, low-contrast signs, and background structures that visually resemble text. The detected regions remain close to character strokes rather than expanding to the surrounding object boundary. This observation matches the quantitative result in
Table 2: the gain over DPText-DETR is modest in F-measure, but it appears in challenging arbitrary-shaped cases where semantic guidance helps select plausible text boundaries.
4.3. Ablation Analysis for Recognition
The recognition ablations evaluated the permutation number in PLM, the mask strategy, and the effect of CLIE. Six permutations produced the most stable overall result, particularly on irregular datasets. As shown in
Table 3, CLIE improved accuracy on most benchmarks, with especially clear gains on SVTP and CUTE. CUTE accuracy increased from 96.2% without CLIE to 99.0% with CLIE, showing that serialized local image information was useful for curved or irregular text.
The strongest recognition gains occurred where global word-shape cues were less reliable. CLIE improved SVTP by 1.4 percentage points and CUTE by 2.8 percentage points. It also improved both ICDAR2015 evaluation sets, which contain low-resolution and blurred text. These results support the design choice of inserting local visual evidence into character-position queries rather than relying only on global image tokens.
4.4. Comparison with Scene Text Recognizers
Table 4 reports recognition accuracy on regular and irregular datasets. SIETR achieved the best or tied-best result on SVT, IC13_857, IC13_1015, IC15_1811, IC15_2077, SVTP, and CUTE among the methods with reported values. Compared with PARSeq, SIETR improved SVTP from 95.2% to 96.3%, CUTE from 98.6% to 99.0%, IC15_1811 from 90.3% to 91.1%, and IC15_2077 from 89.1% to 89.9%. Compared with CDistNet, SIETR improved SVTP and CUTE by 2.8 and 2.1 percentage points, respectively; compared with SVTRv2-B, SIETR improved SVTP by 2.8 percentage points. Unlike character-distance modeling in CDistNet or CTC-oriented feature alignment in SVTRv2-B, SIETR fuses serialized local image embeddings with semantic queries, giving the decoder stronger character-level visual grounding on irregular text. On IIIT5K, SIETR was slightly lower than PARSeq by 0.2 percentage points. This result suggests that its advantage is more pronounced in irregular and distorted scenes than in cleaner regular text.
Table 5 demonstrates that SIETR obtains competitive recognition accuracy with only 3.2 G FLOPs, which is lower than PARSeq with the same number of parameters. This computational efficiency of SIETR mainly benefits from the compact visual-context interaction strategy. Although CLIE introduces additional lightweight operations, including linear projection and Top-
K local feature selection, it reduces redundant interactions between character queries and dense visual tokens during decoding. Therefore, the joint decoder operates on character-related local embeddings rather than repeatedly processing the full visual representation, leading to lower overall computational complexity.
The decoder visualization in
Figure 7 explains why the recognition gain is larger on SVTP and CUTE than on regular text datasets. The highlighted regions move along the character sequence and remain near the corresponding character strokes, even when the input word is blurred or curved. This behavior is consistent with the CLIE ablation in
Table 3: adding local image embeddings improves SVTP by 1.4 percentage points and CUTE by 2.8 percentage points, while producing only a negligible change on IIIT5K. The qualitative and quantitative evidence therefore points to the same mechanism, namely that local visual grounding is most valuable when global word shape and language context are insufficient.
5. Discussion
The results demonstrate that explicit information improves detection and recognition when introduced before the final prediction stage. In CADet, character-level semantics guide boundary refinement, improving recall on challenging text instances. On ArT, the CIA module increases recall from 73.4% to 75.6%, and the full model achieves a 79.5% F-measure. The improvements are mainly attributed to enhanced text-region responses and character-guided queries that preserve curved and weak text boundaries, rather than increased model size.
For recognition, SIETR shows larger gains on irregular benchmarks, where global context is less reliable. It improves SVTP, CUTE, and ICDAR2015 over PARSeq with fewer FLOPs and the same parameter scale. The decoder visualization confirms that serialized local image embeddings improve character-level visual grounding.
Overall, detection benefits from character semantics for separating text from background, while recognition benefits from local visual guidance for reliable character prediction. This asymmetric explicit-guidance design provides a unified strategy for robust scene text analysis.
6. Conclusions
This paper presents explicit information mechanisms for scene text analysis. CADet introduces character-level semantic guidance into arbitrary-shaped text detection via text-enhanced features, adaptive character guidance, and position/classification compensation. SIETR introduces serialized local image embeddings into STR through permutation-based semantic modeling and character-local visual alignment. Across public benchmarks, CADet improved the F-measure on ArT, Total-Text, and CTW1500, achieving 79.5%, 89.4%, and 89.2%, respectively, while SIETR achieved 95.6% sample-size-weighted average recognition accuracy with 23.8 M parameters and 3.2 G FLOPs. The results support explicit character-level visual–context alignment as a compact strategy for curved, distorted, and cluttered scene text.