{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/text-spotting-transformers","title":"Text Spotting Transformers","arxiv_id":"2204.01918","date":"2022-04-05","proceeding":"CVPR 2022 1","authors":["Xiang Zhang","Yongwen Su","Subarna Tripathi","Zhuowen Tu"],"abstract":"In this paper, we present TExt Spotting TRansformers (TESTR), a generic end-to-end text spotting framework using Transformers for text detection and recognition in the wild. TESTR builds upon a single encoder and dual decoders for the joint text-box control point regression and character recognition. Other than most existing literature, our method is free from Region-of-Interest operations and heuristics-driven post-processing procedures; TESTR is particularly effective when dealing with curved text-boxes where special cares are needed for the adaptation of the traditional bounding-box representations. We show our canonical representation of control points suitable for text instances in both Bezier curve and polygon annotations. In addition, we design a bounding-box guided polygon detection (box-to-polygon) process. Experiments on curved and arbitrarily shaped datasets demonstrate state-of-the-art performances of the proposed TESTR algorithm.","url_abs":"https://arxiv.org/abs/2204.01918v1","url_pdf":"https://arxiv.org/pdf/2204.01918v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"text-spotting-transformers","repo_url":"https://github.com/mlpc-ucsd/testr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"text-detection","task_name":"Text Detection"},{"task_slug":"text-spotting","task_name":"Text Spotting"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/text-spotting-on-icdar-2015","task":"Text Spotting","dataset":"ICDAR 2015","model":"TESTR","rank_in_archive_order":6,"of":18,"metrics":{"F-measure (%) - Generic Lexicon":"73.6","F-measure (%) - Strong Lexicon":"85.2","F-measure (%) - Weak Lexicon":"79.4"},"uses_additional_data":false},{"leaderboard":"/sota/text-spotting-on-inverse-text","task":"Text Spotting","dataset":"Inverse-Text","model":"TESTR","rank_in_archive_order":8,"of":9,"metrics":{"F-measure (%) - Full Lexicon":"41.6","F-measure (%) - No Lexicon":"34.2"},"uses_additional_data":false},{"leaderboard":"/sota/text-spotting-on-scut-ctw1500","task":"Text Spotting","dataset":"SCUT-CTW1500","model":"TESTR","rank_in_archive_order":9,"of":11,"metrics":{"F-Measure (%) - Full Lexicon":"81.5","F-measure (%) - No Lexicon":"56.0"},"uses_additional_data":false},{"leaderboard":"/sota/text-spotting-on-total-text","task":"Text Spotting","dataset":"Total-Text","model":"TESTR","rank_in_archive_order":9,"of":12,"metrics":{"F-measure (%) - Full Lexicon":"83.9","F-measure (%) - No Lexicon":"73.3"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.01918","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.01918"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/mlpc-ucsd/TESTR","reach":null}],"summary":{"ran":4,"ran_fixture":2,"ran_draft_wrong":1,"unverified":5},"by_repo_kind":{"official":{"samples":12,"ran":7,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"d390248d94c9ed63","entry":"DeformableCompositeTransformerDecoder","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d390248d94c9ed63"}},{"code_sha256_prefix":"d515f52b31b887cc","entry":"NestedTensor","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d515f52b31b887cc"}},{"code_sha256_prefix":"f77cafa6068b7559","entry":"PositionalEncoding1D","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f77cafa6068b7559"}},{"code_sha256_prefix":"959e178e913b90c4","entry":"_MSDeformAttnFunction","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"959e178e913b90c4"}},{"code_sha256_prefix":"e15093f6736408d0","entry":"inverse_sigmoid_offset","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e15093f6736408d0"}},{"code_sha256_prefix":"874889b24390cf77","entry":"nested_tensor_from_tensor_list","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"874889b24390cf77"}},{"code_sha256_prefix":"7430fe026bcbe067","entry":"sigmoid_offset","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7430fe026bcbe067"}},{"code_sha256_prefix":"45aa5f258a89a820","entry":"DeformableCompositeTransformerDecoderLayer","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"45aa5f258a89a820"}},{"code_sha256_prefix":"d38f59f1328eb490","entry":"DeformableTransformer","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d38f59f1328eb490"}},{"code_sha256_prefix":"a9154eacf08507d1","entry":"DeformableTransformerEncoderLayer","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a9154eacf08507d1"}},{"code_sha256_prefix":"debe8b805c7fb525","entry":"MSDeformAttn","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"debe8b805c7fb525"}},{"code_sha256_prefix":"570d37f8635c97aa","entry":"TESTR","repo":"mlpc-ucsd/TESTR","repo_kind":"official","path":"adet/modeling/testr/models.py","file_url":"https://github.com/mlpc-ucsd/TESTR/blob/HEAD/adet/modeling/testr/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"570d37f8635c97aa"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}