Ninja Codes: Neurally Generated Fiducial Markers for Stealthy 6-DoF Tracking

Yuichiro Takeuchi1, Yusuke Imoto2, Shunya Kato3
1Wikitopia Research / Sony CSL Kyoto
2Osaka University
3Kyoto University
arXiv preprint

Ninja Codes are fiducial markers that appear inconspicuous to humans, but can be reliably detected through software to provide 6-DoF tracking.


Abstract

In this paper we describe Ninja Codes, neurally-generated fiducial markers that can be made to naturally blend into various real-world environments. An encoder network converts arbitrary images into Ninja Codes by applying visually modest alterations; the resulting codes, printed and pasted onto surfaces, can provide stealthy 6-DoF location tracking for a wide range of applications including augmented reality, robotics, motion-based user interfaces, etc. Ninja Codes can be printed using off-the-shelf color printers on regular printing paper, and can be detected using any device equipped with a modern RGB camera and capable of running inference. Using an end-to-end process inspired by prior work on deep steganography, we jointly train a series of network modules that perform the creation and detection of Ninja Codes. Through experiments, we demonstrate Ninja Codes' ability to provide reliable location tracking under common indoor lighting conditions, while successfully concealing themselves within diverse environmental textures. We expect Ninja Codes to offer particular value in scenarios where the conspicuous appearances of conventional fiducial markers make them undesirable for aesthetic and other reasons.


Poster boards showing common environmental textures, each with four Ninja Codes attached to its corners (click on image to enlarge):


Digital images of common environmental textures, each with a single Ninja Code attached to its center (click on image to enlarge):


BibTeX

@misc{takeuchi2025ninjacodes,
  title         = {Ninja Codes: Neurally Generated Fiducial Markers for Stealthy 6-DoF Tracking}, 
  author        = {Yuichiro Takeuchi and Yusuke Imoto and Shunya Kato},
  year          = {2025},
  eprint        = {2510.18976},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2510.18976}, 
}

Contact: Yuichiro Takeuchi (yt@wikitopia.city)