Skip to content
barcoder

Standards/topotag

TopoTag

TypeFiducial Marker
Completeness71%high

Overview

TopoTag is a fiducial marker system: a printed black-and-white pattern that a camera finds in an image to read an ID and recover the camera's full 3D position and orientation relative to the tag (6-DoF pose) from a single frame 12. It was designed at the Chinese VR company Ximmerse and published in IEEE Transactions on Visualization and Computer Graphics (TVCG) in 2021 246. Its detector finds a tag by its topology, the nesting of black regions inside white ones, and only then uses geometry to read the bits. The design uses no bits for rotation checks or Hamming distance, so every bit carries the ID: the three families published hold 128 (3×3), 16,384 (4×4) and 8,388,608 (5×5) IDs 2.

A user prints a tag, calibrates the camera and runs the authors' detector, which returns each tag's ID, position in metres and rotation as a quaternion 7. The detector is published only as compiled Windows binaries for research use, and commercial use is prohibited 7810.

History

TopoTag was developed by Guoxing Yu, Yongtao Hu and Jingwen Dai of Guangdong Virtual Reality Technology Co., Ltd. (Ximmerse), in Guangzhou 26.

  • Preprint (2019–2020). Version 1 of the paper was posted to arXiv on 5 August 2019. Versions 2 and 3 followed on 12 and 15 April 2020, the last marked "Accepted to TVCG" 1.
  • Journal publication (2020–2021). PubMed indexed the article on 24 April 2020 and lists it as published electronically on 29 July 2021 5. It appeared in TVCG vol. 27, no. 9 (September 2021), pp. 3769–3780, DOI 10.1109/TVCG.2020.2988466 45. Crossref counted 57 citing works when read on 6 November 2026 4.
  • Tools and dataset. The project page offers a TopoTag Generator and a TopoTag Detector as Windows executables, a supplementary PDF, and the full 247 GB benchmark dataset 6. On 15 November 2021 the authors released the detector as a C++ library on GitHub 7.
  • Follow-on work. In 2023 the same group published DeepTag in IEEE Transactions on Pattern Analysis and Machine Intelligence (vol. 45, no. 3, pp. 2931–2944). DeepTag is a deep-learning detector that also reads TopoTag 1416.

Technical specification

The only specification is the paper. No standards body publishes TopoTag. The figures below come from the arXiv v3 text 2 unless another source is cited.

Topological structure. The marker is described as a tree of connected components, starting from the large white region inside the outer black border. Two kinds of black node sit inside it:

  • Baseline node. A black node with two white children. It is unique in the tag and fixes where the search of the whole tag starts, so the decoder doesn't have to test rotations. The paper notes it could also be defined with three or more white children.
  • Normal nodes. Black nodes with at most one white child. Each one is one bit: 0 for no white child, 1 for a white child.

In the current design all internal nodes are evenly spaced in an n × n square. The baseline node takes two of the n² positions, which leaves n² − 2 bits 2. The paper's Figure 3 shows two 3×3 tags encoding 0000000 = 0 and 1111111 = 127 2.

Families. Table 1 of the paper lists three families. The paper calls them 9-bit, 16-bit and 25-bit tags, counting every node including the two baseline points 2:

Family Nodes ID bits Dictionary size Min. distance (m) Max. distance (m)
TopoTag 3×3 9 7 128 0.029 1.204
TopoTag 4×4 16 14 16,384 0.029 1.055
TopoTag 5×5 25 23 8,388,608 0.029 0.670

The distances are for tags with a 5 cm outer border, seen by the authors' 1280×960 camera 2. Generating the full 5×5 dictionary took 4.1 seconds, because an ID maps straight to its bit string 2.

Shape freedom. Detection depends only on the topology, so both the internal and the external shapes can change as long as the tree stays the same. Figure 1 of the paper shows squares, circles and hexagons inside square and butterfly outlines 2. The authors' library ships models for 3×3 and 4×4 tags in square and circle versions 7.

Detection pipeline. The paper's Figure 4 shows these steps 2:

  1. Threshold map. The image is downsampled by s1, pixels darker than α are clamped, local means are taken in a window w and downsampled again by s2. The result is upsampled by s1 × s2 with bilinear interpolation.
  2. Binarization against that map, with a minimum brightness β.
  3. Topological filtering. The detector builds the tree of connected regions and keeps a candidate when its child count lies between the ID-0 and maximum-ID counts, plus or minus a tolerance τ, and the tree depth is exactly 3.
  4. Error correction. Nodes smaller than θ1 % of the baseline node's area are dropped. The paper's example is an ant sitting on a tag.
  5. Decoding. The perspective is removed first. The detector starts from the baseline node's two points, p1→p2, and orders the other nodes by angle and distance from that direction. The paper's 4×4 example reads 10000011000110, ID 8390.
  6. Vertex estimation. Each node's vertex is the centroid of its region, computed from image moments.
  7. Pose estimation. Every node is used, not just four outer corners. A 4×4 tag gives 16 correspondences, the two baseline points and 14 normal nodes. The 6-DoF pose is solved by PnP with Levenberg–Marquardt refinement.

The paper's settings are s1 = 4, s2 = 8, w = 5, α = 45, β = 50, τ = 0, θ1 = 30 and θ2 = 0.1 rad, and the dilation size δ grows with the region size 2.

Speed. On an Intel Core i7-7700HQ laptop the detector took 33.638 ms per image, without parallelization. Segmentation took 68.8% of that time, decoding and vertex estimation 29.7%, and pose estimation 1.5%. The authors also built the 2D detection stage on a Lattice FPGA (LFE5UM-45, 44k LUTs, no external DDR), where it ran in under 100 µs, a 230× speed-up 2.

Limits stated by the authors. TopoTag tolerated 10% occlusion, from either side of the tag, but failed at 20%. RuneTag held up to 30% 2. Dramatic lighting changes or severe motion blur over the tag alter its topology and cause misses 2.

Use cases

  • AR and robotics. The authors present fiducial markers for augmented reality, robot navigation and other cases that need the camera-to-object pose. Their paper shows 360° tracking of an object with 18 TopoTags on its faces, a rhombicuboctahedron 2.
  • Embedded detection. The FPGA build was made to show that the detector can run on mobile hardware 2.
  • Surgical navigation. A 2023 paper in the proceedings of the Biophysical Society of Guangdong's PPLH 2022 forum (Zhang, Guo, Liu and Wang) describes a mixed-reality navigation system for dental implant surgery based on TopoTag 17.
  • Benchmark baseline. TopoTag is a standard comparison point in marker research. LFTag (2020) chose it to represent topological markers 12, DeepTag (2023) used it as one of its four main markers 14, and the FMAC accuracy benchmark (2026) tested it beside ArUco, AprilTag and STag 11.

No commercial product was found that documents using TopoTag. Ximmerse's Unity XR SDK has a tag-tracking class, but its documentation does not name the marker type, so this page does not link the two.

Implementations

Project Language Stars Last active What it is
herohuyongtao/topotag C++ (prebuilt) 31 Nov 2021 The authors' detector: a header, .lib files and Win32 DLLs built on OpenCV 4.5.1. No source code 7
herohuyongtao/deeptag-pytorch Python 146 Mar 2023 DeepTag, the authors' deep-learning detector, with pre-trained TopoTag models. Source code, research only 15
kingoflolz/topotag Rust 17 Mar 2021 Independent reimplementation of TopoTag and LFTag detection, MIT licence. Its author calls it "quick and dirty" and "not very well tested" 13

Star counts were read from the GitHub API on 6 November 2026.

  • The official library. It exposes two calls, LoadConfigParams and DetectTopotag. The configuration file sets the tag model, the family (tagBitSize), the tag's white-area size in metres and the camera calibration 7. The README says the library is for research only, prohibits commercial use and supports only the Win32 target 7.
  • No source. Asked whether the source would be opened, the maintainer replied in April 2025 that "due to company intellectual property issues" it cannot be released 8. A Linux build is not available either 9. In December 2024 the maintainer confirmed again that the library may be used freely for research and not commercially 10.
  • Generating tags. The only generator is the Windows executable on the project page 6. None of the three repositories above publishes a TopoTag generator.

FMAC's authors note that TopoTag "is not open-source unlike the three other markers" they tested, and they used the GitHub binary 11.

Comparison

What the paper compared. The authors benchmarked TopoTag against ARToolKit Marker (ARToolKit and ARToolKitPlus), ArUco (16h3, 25h7, 36h12), RuneTag, ChromaTag and AprilTag (16h5, 25h7, 25h9, 36h9, 36h11) on their own dataset of 169,713 images 2. A DENSO VS-6556 robot arm moved the camera along the same paths for every tag. The camera was a 1280×960 global-shutter industrial camera at 38.8 fps with a 98° diagonal field of view and a fixed 10 ms exposure. All tags had a 5 cm outer border 2. The authors tuned the segmentation of ARToolKit and ArUco, which raised ARToolKit's recall from 72.079% at its default settings to 99.990% 3.

The square-marker comparison is about bits. Square markers such as AprilTag and ArUco reserve bits for rotation and Hamming distance, and TopoTag spends all of them on the ID 2.

Detection accuracy (paper Table 2; recall and precision in %, time in ms per image) 2:

Tag Dictionary Recall Precision Time
ARToolKit 10 99.990 99.880 5.864
ARToolKitPlus 512 98.297 100.000 9.314
ArUco 16h3 250 100.000 99.910 54.319
RuneTag 17,000 0.281 100.000 455.832
ChromaTag 30 9.088 9.190 9.103
AprilTag 25h9 35 80.405 100.000 251.275 → 13.603
AprilTag 36h11 587 100.000 99.990 241.314 → 13.431
TopoTag 4×4 16,384 100.000 100.000 33.638

AprilTag times are given as AprilTag-1 → AprilTag-2 2. The paper's text says every AprilTag family stayed below 81% recall, but its own table gives 36h11 100%. DeepTag's later table repeats the 100% figure 214. On 207,883 LabelMe images that contain no markers, TopoTag and ARToolKitPlus returned no false positives. ArUco 16h3 returned 146, reacTIVision 348, ARToolKit 9,756 and AprilTag 16h5 49,321 2.

Pose accuracy and jitter. These were measured at ten fixed robot positions 2:

Tag Position error avg (mm) Rotation error avg (°) Position jitter avg (mm) Rotation jitter avg (°)
ArUco 36h12 8.768 0.078 0.573 0.526
AprilTag 36h11 1.402 0.010 0.074 0.133
TopoTag 4×4 1.011 0.019 0.055 0.058

TopoTag had the lowest position error, about 28% below the next best. Its rotation jitter was about 56% lower. In rotation error AprilTag 36h11 was better 2. In tests in the dark, bright outdoors and in shadow, with a Logitech C930E rolling-shutter webcam, TopoTag, ARToolKitPlus and AprilTag-3 worked in every scenario. TopoTag had the best jitter in 9 of the 12 measures 2.

Independent and later results. These don't all agree with the authors' benchmark:

  • LFTag (2020). Ben Wang's simulation tested 1 m tags with a virtual 640×480 camera at a 320-pixel focal length. TopoTag 3×3, 4×4 and 5×5 were first missed at 13.3, 10.6 and 8.39 m. AprilTag 36h11 reached 23.4 m (decimation 1), and LFTag 4×4, with 268,435,456 IDs, 21.7 m. TopoTag's first missed angle was 61.5°, 53° and 45°, against 77.5° for AprilTag. TopoTag again had no false positives on LabelMe. Wang concludes that TopoTag's nested structure is "fragile to low pass filtering", which limits its range 12.
  • DeepTag (2023). On the DeepTag group's own dataset, the original TopoTag detector had 86.86% recall on the "Normal" set (≤ 50 cm and ≤ 60°) and 5.18% on the "Difficult" set (> 50 cm or > 60°). AprilTag had 100% and 64.83%. Re-detected with DeepTag, TopoTag reached 100% and 59.86% 14. Its run time also grew under image noise, from 0.0143 s at noise σ = 0 to 14.06 s at σ = 100, while AprilTag stayed near 0.01–0.02 s 14.
  • FMAC (2026). Synthetic 50 × 50 mm tags were rendered at identical poses, 500–1,500 mm from the camera. TopoTag was detected in only 57.65% of the poses, and only reliably when it was more than 50 pixels wide, about 1,000 mm away. On the 5,625 poses that all four markers detected, TopoTag was the most accurate in translation, about 0.1 mm in X and Y and 0.7 mm in Z. AprilTag was better in rotation, around 0.1°, and was detected across the whole 500–1,500 mm range tested 11.

Topological markers. D-touch and reacTIVision Amoeba also identify markers from their region tree. The TopoTag paper notes that they recover only 2D location and orientation, while TopoTag gives full 3D pose from its geometry 2. LFTag's author says TopoTag improved on reacTIVision by using geometry to order the data bits 12. The Claycode paper (ACM TOG 2025) lists TopoTag with D-Touch, reacTIVision, ARTag, ARTcodes and Seedmarkers as work on topological fiducial markers 18.

Choosing. TopoTag suits close-range work that needs many IDs and precise translation, such as tracking an object within about a metre in research 211. AprilTag or ArUco suit longer range, steep viewing angles, open source code and commercial products 71112. STag was FMAC's other open-source comparison marker 11.

Fun facts

  • The benchmark rig used a DENSO robot arm. The paper links to the robot pages of DENSO WAVE 2, the company that released the QR Code in 1994 19.
  • TopoTag's closest working distance was 0.029 m for all three families, because a tag still decodes while partly cut off by the frame and out of focus. The best square marker reached 0.040 m (AprilTag-2 25h9) 2.

Status

Research-grade and inactive. The library repository has had no commits since 15 November 2021 7. The project page was last updated in October 2024 6, and the maintainer still answered issues in 2025 without releasing source code or a Linux build 89. The licence remains research-only 10. TopoTag is still cited and benchmarked, as in FMAC in January 2026 411. No successor format has been announced. The authors' later DeepTag is a detector that reads existing marker families, TopoTag among them 15.

Sources

Deployments

No country reports mention this standard by name.

Regions / aggregations not mapped to a single country

  • Universal
source · content/standards/topotag/index.md