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


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 robotics and augmented reality. Ninja Codes can be printed using standard color printers on regular printing paper, and can be detected using any device equipped with a modern RGB camera and capable of running inference. 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 appearance of conventional fiducial markers makes 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):
@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@sento.net)