Papers
Topics
Authors
Recent
Search
2000 character limit reached

Pixel Anchor Module in Scene Text Detection

Updated 7 July 2026
  • The paper demonstrates that the Pixel-Anchor module integrates pixel segmentation and anchor-based detection via a shared ResNet-50 backbone to reduce FLOPs while enhancing performance.
  • It employs an anchor-level attention mechanism and adaptive predictor layers to improve recall and precision for texts with varying sizes and aspect ratios.
  • Fusion NMS and optimized loss functions seamlessly merge outputs from both branches, enabling accurate, real-time scene text detection.

Searching arXiv for the specified paper to ground the article with current bibliographic metadata. Pixel-Anchor is an end-to-end trainable deep neural network framework for oriented scene text detection that combines semantic segmentation and SSD in one network by feature sharing and an anchor-level attention mechanism (Li et al., 2018). Its core design joins a pixel-wise segmentation branch with an anchor-based branch so that the system can detect scene text with large variances in size and aspect ratio in a single network forward pass, while requiring no complex post-processing other than an efficient fusion Non-Maximum Suppression. In the reported ICDAR 2015 setting, with single-scale input at 960×1728960\times 1728, it achieves a precision of 88.32%88.32\%, recall of 87.05%87.05\%, and F-score of 87.68%87.68\% at approximately 10 FPS on a single Nvidia Titan X (Li et al., 2018).

1. Architectural definition and shared backbone

The module is built around two tightly coupled branches—a pixel-wise segmentation branch and an anchor-based SSD branch—that share a common ResNet-50 backbone. The backbone is truncated before the final classification layer. For the segmentation branch, the original output stride of 32 is reduced to 16 by removing the last down-sampling and replacing it with atrous convolution with rate $2$. Three feature maps are extracted from ResNet-50 and shared by both branches: C2C2 at $1/4$ spatial resolution, C3C3 at $1/8$, and C4C4 at 88.32%88.32\%0 (Li et al., 2018).

This shared-backbone construction is central to the module’s definition. Rather than running separate segmentation and detection networks, Pixel-Anchor couples both pathways at the feature level and then specializes them downstream. The reported effect is that feature sharing reduces total FLOPs by avoiding two independent backbones. A plausible implication is that the design should be understood not as a late-fusion ensemble, but as a jointly optimized hybrid detector in which the two branches remain structurally interdependent.

2. Pixel-wise branch and encoder-decoder composition

The pixel-wise segmentation branch takes 88.32%88.32\%1 through an Atrous Spatial Pyramid Pooling (ASPP) head to enlarge the receptive field, then upsamples by 88.32%88.32\%2 and concatenates with 88.32%88.32\%3, applies a 88.32%88.32\%4 convolution, upsamples by 88.32%88.32\%5 again and concatenates with 88.32%88.32\%6, and applies another 88.32%88.32\%7 convolution. In this branch, the encoder-decoder structure combines FPN and ASPP. Concretely, from 88.32%88.32\%8 the model produces six parallel atrous convolutions with dilation rates 88.32%88.32\%9, all with 87.05%87.05\%0 filters; concatenates their outputs plus the original 87.05%87.05\%1; applies a convolution to reduce dimension; then performs the two-stage upsampling and fusion sequence with 87.05%87.05\%2 and 87.05%87.05\%3 (Li et al., 2018).

The branch produces two outputs per pixel. The first is an RBox predictor with six channels:

  • 87.05%87.05\%4: probability that the pixel belongs to text
  • 87.05%87.05\%5: distances to the top, bottom, left, and right of the oriented box
  • 87.05%87.05\%6: orientation angle

The second is a one-channel attention heat-map:

  • 87.05%87.05\%7: probability that the pixel is text, used to re-weight anchor features

The stated role of the ASPP+FPN coupling is to provide large-context reasoning for long or large text while preserving fine spatial detail for small or closely spaced text. This directly reflects the dual requirement of oriented scene-text detection: wide receptive fields are needed for elongated text instances, whereas high-resolution detail remains necessary for small and dense text.

3. Anchor-based branch, anchor-level attention, and Adaptive Predictor Layer

The anchor-based SSD branch starts from the shared 87.05%87.05\%8 and 87.05%87.05\%9. On 87.68%87.68\%0, three extra convolutional layers are appended to form feature maps at strides 87.68%87.68\%1, 87.68%87.68\%2, and two more atrous 87.68%87.68\%3 maps with rate 87.68%87.68\%4, yielding six scales in total: 87.68%87.68\%5 at 87.68%87.68\%6, 87.68%87.68\%7 at 87.68%87.68\%8, 87.68%87.68\%9 at $2$0, and $2$1, $2$2, $2$3 at $2$4. On the smallest scale $2$5, which is designated as best for small text, anchor-level attention is applied. On each $2$6, the network attaches an Adaptive Predictor Layer (APL) that groups anchors by aspect ratio and applies matching convolution kernels. Each anchor predicts a text-versus-background score and eight offsets for the oriented quadrilateral (Li et al., 2018).

The anchor-level attention mechanism converts the single-channel segmentation heat-map $2$7 into a weight map $2$8 by an element-wise exponential:

$2$9

This preserves background locations with C2C20 and C2C21, while up-weighting text-activated locations up to C2C22. The map is broadcast over the channel dimension C2C23 of C2C24, giving

C2C25

or in matrix form,

C2C26

The reported effect is that false positives on the small anchors are greatly reduced.

The APL is one of the core novelties of the framework. It splits anchors into five aspect-ratio groups and assigns matched convolution kernels so that the receptive field aligns with text shape.

Group Aspect ratios Kernel
Square C2C27 C2C28
Medium Horz C2C29 $1/4$0
Medium Vert $1/4$1 $1/4$2
Long Horz $1/4$3 $1/4$4
Long Vert $1/4$5 $1/4$6

For the long-anchor groups, the long dimension $1/4$7 is tuned per feature map: $1/4$8 use $1/4$9, respectively. On C3C30, the long anchors are trimmed off to avoid anchor-matching ambiguities. To handle dense text, the design also introduces anchor density: each anchor is duplicated with small offsets—square anchors in both C3C31, horizontal anchors in C3C32 only, and vertical anchors in C3C33 only. Densities per C3C34 for medium anchors are C3C35, and for long anchors C3C36.

The stated contribution of these choices is that the APL’s shape-adaptive kernels and densities boost recall on both tiny and ultra-long text. This suggests that Pixel-Anchor treats aspect-ratio diversity not as a marginal anchor-configuration issue but as a first-order architectural constraint.

4. Optimization objectives and hard example mining

Training is organized around separate pixel and anchor losses. The pixel-wise classification loss is

C3C37

where C3C38 is the standard binary cross-entropy and OHEM picks 512 hard negatives, 512 random negatives, and all positives per image (Li et al., 2018).

The pixel-wise box regression loss is

C3C39

with $1/8$0 in the experiments, and $1/8$1 defined as 128 hard plus 128 random positive pixels.

The anchor classification and regression losses are

$1/8$2

with OHEM enforcing a negative-to-positive ratio of $1/8$3, and

$1/8$4

These are combined as

$1/8$5

$1/8$6

$1/8$7

This loss structure formalizes the hybrid nature of the model. The pixel branch is optimized for dense spatial classification and oriented-box geometry, while the anchor branch is optimized for proposal-style classification and quadrilateral regression. The weighting scheme indicates that the pixel loss is amplified at the total-loss level, whereas the anchor localization term is relatively down-weighted inside the anchor loss.

5. Training protocol and inference pipeline

The training configuration uses Adam with $1/8$8 and $1/8$9. The backbone is initialized from ResNet-50 ImageNet weights. The training schedule first pretrains on SynthText with 800 K synthetic images from learning rate C4C40, then fine-tunes on the target dataset, such as ICDAR, starting at C4C41 for C4C42 epochs and then C4C43 for C4C44 epochs. Input augmentation uses random C4C45 crops preserving aspect ratio, with batch size 32. Pixel OHEM and anchor OHEM are used as described in the loss definitions (Li et al., 2018).

Inference is governed by a procedure denoted Fusion NMS. From the SSD branch, the detector keeps only all anchors on C4C46 and all long anchors, corresponding to groups C4C47 and C4C48, on C4C49. From the pixel branch, it discards boxes whose minimum side is less than 10 px or whose aspect ratio is outside 88.32%88.32\%00. The two candidate sets are then merged, and all SSD scores are boosted by 88.32%88.32\%01 so they win NMS ties. Cascaded NMS is applied first on the minimum-bounding rectangle with IoU 88.32%88.32\%02, then on quadrilaterals with IoU 88.32%88.32\%03.

The reported significance of this design is that the fusion NMS effectively merges the complementary strengths of the pixel and anchor branches without expensive post-processing. In operational terms, Pixel-Anchor is therefore single-shot in forward computation but still explicitly hybrid at the decision-merging stage.

6. Reported performance, module-level contributions, and interpretation

On ICDAR 2015, with single-scale input size 88.32%88.32\%04, Pixel-Anchor runs at approximately 10 FPS on a single Nvidia Titan X and reports precision 88.32%88.32\%05, recall 88.32%88.32\%06, and F-score 88.32%88.32\%07 (Li et al., 2018). The abstract further states that the method outperforms competing methods in terms of text localization accuracy and run speed, and that it detects scene text in a single network forward pass.

The paper attributes the observed behavior to several component contributions. Feature sharing reduces total FLOPs by avoiding two independent backbones. Anchor-level attention lifts precision, especially on small anchors. The APL’s shape-adaptive kernels and densities boost recall on both tiny and ultra-long text. FPN+ASPP ensures large-context cues for long, oriented text while preserving fine detail for small text. Fusion NMS effectively merges the complementary strengths of the pixel and anchor branches without expensive post-processing.

These points delimit the module’s place within oriented scene-text detection. It is neither a purely segmentation-based detector nor a purely anchor-based detector; instead, it is a combined network whose central premise is that the failure modes of each family can be mitigated by tight coupling. The paper explicitly motivates the design by noting that semantic segmentation and general object detection frameworks, when adopted alone for scene text detecting tasks, both have obvious shortcomings in practice. Pixel-Anchor’s architecture can therefore be read as a structured attempt to reconcile dense per-pixel supervision with multi-scale anchor regression under a single training objective and a single forward-pass deployment model.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Pixel Anchor Module.