SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.00438 · ECCV · 2022

Toward Understanding WordArt: Corner-Guided Transformer for Scene Text Recognition

Xiang Bai, Xudong Xie, Zhifei Zhang, Zhaowen Wang, Ling Fu

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2208.00438.json · badge: /api/ran/2208.00438.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xdxie/WordArt canonical (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
FunctionStatusWhere it lives
overlay_mask_img Ran
ran on a synthesized input
xdxie/WordArt/mmocr/core/visualize.py
code served (permissive licence) · get_code("51bc3232ec8e8744")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (32, 48, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import cv2
import numpy as np

# Create a small test image (RGB format, uint8)
img = np.ones((32, 48, 3), dtype=np.uint8) * 200

# Create a simple binary mask
mask = np.zeros((32, 48), dtype=np.uint8)
mask[10:20, 15:35] = 255

ARGS = {
    "img": img,
    "mask": mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (32, 48, 3) — shape (32, 48, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
points2boundary Ran
ran on a synthesized input
xdxie/WordArt/mmocr/core/mask.py
code served (permissive licence) · get_code("f9b4b952d392770f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import cv2

# Create valid test data for points2boundary function

# For 'quad' text representation type
# Points should be (n, 2) shape representing mask coordinates
quad_points = np.array([
    [10, 20],
    [50, 20],
    [50, 80],
    [10, 80]
], dtype=np.float32)

# For 'poly' text representation type
# Create a more complex polygon with multiple points
poly_points = np.array([
    [15, 25],
    [45, 20],
    [50, 35],
    [55, 70],
    [30, 85],
    [10, 75]
], dtype=np.float32)

# Test with quad representation
ARGS = {
    "points": quad_points,
    "text_repr_type": "quad",
    "text_score": 0.95,
    "min_width": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
revert_sync_batchnorm Ran
ran on a synthesized input
xdxie/WordArt/mmocr/utils/model.py
code served (permissive licence) · get_code("77cc2dc5896ef18d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned SimpleModelWithSyncBN. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a module with SyncBatchNorm layers that we want to revert
class SimpleModelWithSyncBN(nn.Module):
    def __init__(self):
        super().__init__()
        self.sync_bn1 = nn.SyncBatchNorm(num_features=4)
        self.linear = nn.Linear(4, 3)
        self.sync_bn2 = nn.SyncBatchNorm(num_features=3)
    
    def forward(self, x):
        x = self.sync_bn1(x)
        x = self.linear(x)
        x = self.sync_bn2(x)
        return x

# Create the module with SyncBatchNorm layers
module = SimpleModelWithSyncBN()

# Initialize the SyncBatchNorm layers with some state
module.sync_bn1.weight.data.fill_(1.0)
module.sync_bn1.bias.data.fill_(0.0)
module.sync_bn1.running_mean.fill_(0.0)
module.sync_bn1.running_var.fill_(1.0)

module.sync_bn2.weight.data.fill_(1.0)
module.sync_bn2.bias.data.fill_(0.0)
module.sync_bn2.running_mean.fill_(0.0)
module.sync_bn2.running_var.fill_(1.0)

# Set training mode
module.train()

ARGS = {
    "module": module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModelWithSyncBN — a SimpleModelWithSyncBN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModelWithSyncBN output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
seg2boundary Ran
ran on a synthesized input
xdxie/WordArt/mmocr/core/mask.py
code served (permissive licence) · get_code("acefba8a62931b37")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a simple segmentation mask
seg = np.zeros((20, 20), dtype=np.uint8)
# Add some white pixels to form a shape
seg[5:15, 5:15] = 255

# Set text representation type
text_repr_type = 'quad'

# Set text score (optional)
text_score = 0.85

ARGS = {
    'seg': seg,
    'text_repr_type': text_repr_type,
    'text_score': text_score
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
overlay_mask_img 2 other papers
1 dated earlier, 1 later
2105.01848 (2021-05)
PingAn-VCGroup's Solution for ICDAR 2021 Competition on Scientific Literature Parsing Task B: Table Recognition to HTML
2306.15142 (2023-06)
LRANet: Towards Accurate and Efficient Scene Text Detection with Low-Rank Approximation Network
points2boundary 2 other papers
1 dated earlier, 1 later
2105.01848 (2021-05)
PingAn-VCGroup's Solution for ICDAR 2021 Competition on Scientific Literature Parsing Task B: Table Recognition to HTML
2306.15142 (2023-06)
LRANet: Towards Accurate and Efficient Scene Text Detection with Low-Rank Approximation Network
seg2boundary 2 other papers
1 dated earlier, 1 later
2105.01848 (2021-05)
PingAn-VCGroup's Solution for ICDAR 2021 Competition on Scientific Literature Parsing Task B: Table Recognition to HTML
2306.15142 (2023-06)
LRANet: Towards Accurate and Efficient Scene Text Detection with Low-Rank Approximation Network

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Artistic text recognition is an extremely challenging task with a wide range of applications. However, current scene text recognition methods mainly focus on irregular text while have not explored artistic text specifically. The challenges of artistic text recognition include the various appearance with special-designed fonts and effects, the complex connections and overlaps between characters, and the severe interference from background patterns. To alleviate these problems, we propose to recognize the artistic text at three levels. Firstly, corner points are applied to guide the extraction of local features inside characters, considering the robustness of corner structures to appearance and shape. In this way, the discreteness of the corner points cuts off the connection between characters, and the sparsity of them improves the robustness for background interference. Secondly, we design a character contrastive loss to model the character-level feature, improving the feature representation for character classification. Thirdly, we utilize Transformer to learn the global feature on image-level and model the global relationship of the corner points, with the assistance of a corner-query cross-attention mechanism. Besides, we provide an artistic text dataset to benchmark the performance. Experimental results verify the significant superiority of our proposed method on artistic text recognition and also achieve stateof-the-art performance on several blurred and perspective datasets. The dataset and codes are available at: https://github.com/xdxie/WordArt.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2208.00438")
get_code_for_paper("2208.00438")
have("2208.00438")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2208.00438.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2208.00438.svg)](https://syntology.ai/paper/2208.00438)

Connect an agent — have() is free.