E2ETag: An End-to-End Trainable Method for Generating and Detecting Fiducial Markers

John Brennan Peace, Eric Psota, Yanfeng Liu, Lance C. PérezBMVC 2020

TL;DR

E2ETag is the first framework to jointly optimize fiducial marker design and detection. By training a generator and detector together through a differentiable augmentation pipeline, it creates markers that significantly outperform traditional designs like AprilTag in challenging, real-world conditions.

The Challenge of Hand-Crafted Markers

Fiducial markers—such as QR codes, ARTags, and AprilTags—are essential for tracking and pose estimation in computer vision. Historically, these markers have relied on human-engineered, hand-crafted designs like binary grids or concentric circles. These designs are paired with heuristic detection algorithms optimized for ideal conditions.

Examples of traditional hand-crafted fiducial markers, which often struggle in non-ideal environments.

While effective under perfect lighting and frontal views, these traditional systems fail under motion blur, sensor noise, or extreme viewing angles. E2ETag rethinks this paradigm by using a neural network to simultaneously design the marker and the detector, ensuring the patterns are optimized for the detection task itself.

Methodology: The End-to-End Pipeline

The core of E2ETag is a three-stage differentiable pipeline that allows gradients to flow from the detector back to the marker generator.

The E2ETag pipeline: A generator creates markers, an augmenter applies realistic distortions, and a detector learns to localize and classify them.
  1. Generator: A transposed convolution network converts a one-hot ID vector into a 128x128 pixel marker.
  2. Augmenter (Spatial Warp & Superimposition): The generated marker is projectively warped and superimposed onto random background images (from COCO/ImageNet). Crucially, this stage applies differentiable augmentations—including motion blur, white-balance shifts, and noise—to simulate real-world capture conditions.
  3. Detector: A DeepLabV3+ network (ResNet18 backbone) processes the resulting image to output a heatmap for sub-pixel localization, class identity, and 6D pose parameters.

Evaluation and Results

The system was trained entirely on synthetic data but evaluated on a novel real-world dataset. The researchers printed 30 classes of E2ETags alongside AprilTags and ChromaTags, testing them across diverse environments, distances (1–5m), and extreme viewing angles (up to ±80°).

Key Findings:

  • Superior Robustness: E2ETag maintained high precision and recall at extreme angles where traditional markers failed. Under heavy noise, E2ETag achieved a recall of 0.57, while AprilTag and ChromaTag dropped to 0.30 and 0.11, respectively.
  • Organic Designs: The generator learned "alien-looking," organic patterns. These shapes are naturally resistant to the specific corruptions (like blur) introduced during training.
  • Performance Trade-offs: While highly robust, E2ETag runs at 10 fps on an RTX 2080 Ti. This is slower than the highly optimized heuristic methods (AprilTag at 50 fps, ChromaTag at 900 fps), suggesting a trade-off between robustness and raw speed.

Future Directions

E2ETag demonstrates that joint optimization is a powerful tool for visual marker design. Future work could involve fine-tuning the detector on real-world images or constraining the generator to incorporate specific aesthetic elements, such as logos, while maintaining the learned robustness.

Summary updated

BibTeX
@misc{peace2020e,
  author = {John Brennan Peace and Eric Psota and Yanfeng Liu and Lance C. Pérez},
  title = {{E2ETag: An End-to-End Trainable Method for Generating and Detecting Fiducial Markers}},
  year = {2020},
  eprint = {2105.14184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.14184},
}
Figure