Skip to content
barcoder

Standards/artoolkit-marker

ARToolKit Marker

TypeFiducial Marker
Completeness75%high

Overview

An ARToolKit marker is a square fiducial printed on paper or card: a thick black border around a picture or a small grid of black and white cells. The ARToolKit augmented-reality library finds the square in a camera image, works out which marker it is, and computes the camera's position and orientation relative to it, so that a 3D model can be drawn on top of the card in real time 12. A person uses one by printing it, telling the application which marker to expect (a trained pattern file or a barcode ID), and pointing a webcam or phone camera at it; the virtual object appears only while the whole border and interior are in view 212.

The marker is not a data barcode. The interior only tells markers apart; there is no free-form payload. Two families exist: the original pictorial "template" markers, identified by correlating the interior against stored images, and "matrix" (2D-barcode) markers, whose interior is a 3×3 to 6×6 grid encoding an ID, optionally with parity, Hamming or BCH error correction 121314. There is no standards-body specification: the marker formats are defined by the ARToolKit code and documentation.

History

Origins (1999). Hirokazu Kato and Mark Billinghurst described the marker tracking in Marker Tracking and HMD Calibration for a Video-based Augmented Reality Conferencing System at IWAR '99, the 2nd IEEE and ACM International Workshop on Augmented Reality. Kato was then at the Faculty of Information Sciences, Hiroshima City University, and Billinghurst at the Human Interface Technology Laboratory (HIT Lab), University of Washington 1. The paper used "size-known square markers": after thresholding, regions whose outline fits four line segments are normalised and compared by template matching with patterns given to the system beforehand, so "user names or photos" could serve as marker IDs 1. The HIT Lab's ARToolKit history page says the library was developed in 1999 when Kato arrived at the HIT Lab, and was first demonstrated at SIGGRAPH 1999 in the Shared Space project 3. Earlier square-marker work existed: Wagner and Schmalstieg credit Rekimoto's 2D Matrix Code (1996) with pioneering a square planar shape for pose plus an embedded 2D barcode for identity, and say Kato "used a similar approach" in 1999 6.

Open-source releases (2000–2007). The ARToolKit 2.33 manual (November 2000; Kato, Billinghurst and Ivan Poupyrev) describes a GPL release, free for non-commercial use, with commercial licences from Kato or Billinghurst; it ran on SGI IRIX, Linux and Windows 95/98/NT/2000 2. The HIT Lab version chart runs from 1.00 (SGI and Windows) through 2.33, 2.52 (DirectShow), 2.61 (Mac OS) to 2.68, a unified Windows/Linux/Mac/SGI library assembled by Philip Lamb 3. Wikipedia dates the incorporation of ARToolworks, the commercial company, and an open-source v1.0 release to 2001 4; TechCrunch also gives 2001 for ARToolworks' founding 9. Mobile ports followed: Symbian (2005), iPhone 3G (2008) and Android (2010), per Wikipedia 4. Wagner and Schmalstieg's Windows CE port of 2003 produced the first self-contained handheld AR application and grew into ARToolKitPlus, presented at the Computer Vision Winter Workshop in February 2007; by then it shared "almost no code" with ARToolKit and added ID-coded markers 6.

DAQRI and artoolkitX (2015–2026). DAQRI announced on 13 May 2015 that it had acquired ARToolworks and would make the commercial "Pro" features (natural-feature tracking and the iOS, Android and Unity versions) free under the LGPL v3; ARToolworks' CEO Ben Vaughan and CTO Philip Lamb joined DAQRI to lead a new open-source division 910. The press release claimed close to one million downloads 10. Wikipedia gives 5.2 (13 May 2015) as the first DAQRI open-source version 4; the last DAQRI-era archive, ARToolKit 5.4, was assembled by Philip Lamb on 20 September 2017 17. Vaughan and Lamb later started artoolkitX to keep the code maintained 4; its 1.2.0 release notes are dated 28 October 2026 11.

Technical specification

There is no published standard. The rules below come from ARToolKit's papers, its manual, and the artoolkitX source and wiki.

Marker geometry. A marker must be square, have a continuous border (usually black) on a contrasting background, and have a rotationally asymmetric interior. By default the border is 25% of the marker's edge length on each side, so the pattern occupies the central 50% ("pattern ratio" 0.5). Other ratios are allowed, but all markers in use at once must share one, and 0.5 is needed for compatibility with ARToolKit 1.0 to 4.4 1215. artoolkitX can also look for white borders on a dark background (AR_LABELING_WHITE_REGION) 1218.

Detection. The camera image is binarised with a lighting threshold (default 100 on a 0–255 scale), connected regions are found, and those whose contours fit four line segments become candidate squares. Each candidate's interior is unwarped with a perspective transform and identified; the known square size then gives a 3×4 camera-to-marker transformation matrix 1215. artoolkitX adds automatic threshold modes (median, Otsu, adaptive, bracketing), but manual thresholding stays the default 1415.

Template (pictorial) markers. The interior is sampled into a 16 × 16 grid by default (configurable from 16 to 64) and compared with stored templates at all four orientations 1215. A .patt file holds, for each of the four rotations, 16 × 16 intensity values in each of three colour channels (B, G, R). On load the values are inverted, mean-subtracted and normalised for correlation matching, and a monochrome copy is averaged from the three channels 16. Pattern files are made with mk_patt by pointing a calibrated camera at the printed marker, or with genMarkerSet from a JPEG 12. Up to 50 templates can be loaded at once (25 on some builds), and each detection carries a confidence value from 0.0 to 1.0 1415. The classic samples are "Hiro" and "Kanji" 1118.

Matrix (barcode) markers. The interior is a grid of black and white cells read directly as an ID, so no pattern file is needed 13. The available types are:

artoolkitX type Grid IDs Bit errors detected / corrected
AR_MATRIX_CODE_3x3 (default) 3 × 3 64 0 / 0
AR_MATRIX_CODE_3x3_PARITY65 3 × 3 32 1 / 0
AR_MATRIX_CODE_3x3_HAMMING63 3 × 3 8 2 / 1
AR_MATRIX_CODE_4x4 4 × 4 8,192 0 / 0
AR_MATRIX_CODE_4x4_BCH_13_9_3 4 × 4 512 2 / 1
AR_MATRIX_CODE_4x4_BCH_13_5_5 4 × 4 32 4 / 2
AR_MATRIX_CODE_5x5_BCH_22_12_5 5 × 5 4,096 4 / 2
AR_MATRIX_CODE_5x5_BCH_22_7_7 5 × 5 128 6 / 3
AR_MATRIX_CODE_5x5 5 × 5 4,194,304 0 / 0
AR_MATRIX_CODE_6x6 6 × 6 8,589,934,592 0 / 0

ID counts follow the ranges in artoolkitX's ar.h (for example "0-4095") and the error figures follow the artoolkitX wiki 1314. The wiki lists 4,095 and 127 markers for the two 5 × 5 BCH types, one fewer than the header's ranges 1314. A further type, AR_MATRIX_CODE_GLOBAL_ID, uses a BCH code with Hamming distance 19 and returns a 64-bit global ID 14. Two hybrid modes check for a matrix code first and then match templates 1415. Printable 3 × 3 sets ship with artoolkitX, enabled with arSetPatternDetectionMode(arHandle, AR_MATRIX_CODE_DETECTION) and arSetMatrixCodeType(arHandle, AR_MATRIX_CODE_3x3) 23.

Practical limits. In the 2.33 manual, a 2.75-inch marker tracked to 16 inches, 3.5 in to 25 in, 4.25 in to 34 in and 7.37 in to 50 in. Swapping the 4.25-inch marker's simple pattern for a much more complex one cut the range from 34 to 15 inches 2. Tracking stops if a hand covers part of the pattern and degrades as the marker tilts. Glare on paper causes misses, and the manual suggests black velvet on a white base as a non-reflective marker 2. Fine detail is a common mistake: markers that look alike when scaled to 16 × 16 pixels get confused 12.

ARToolKitPlus ID markers. ARToolKitPlus added binary ID markers alongside templates: "Simple ID" with up to 512 markers and BCH-coded IDs with up to 4,096 67. It also added automatic thresholding (the median of the last marker's pixels, randomised when no marker is found), vignetting compensation, fixed-point maths and lookup tables for phones without floating-point units 6.

Use cases

  • Collaborative AR (1999). The IWAR '99 system attached remote collaborators' video "virtual monitors" to markers that a user could place freely around them. It ran at 7–10 frames per second on an SGI O2 1.
  • Augmented books. In the MagicBook (2001), certain pictures in an ordinary book had thick black borders and served as ARToolKit tracking marks. Readers looking through a handheld display saw 3D scenes rising from the page, rendered at 30 frames per second on an 800 MHz Pentium III 5.
  • Handheld and mobile AR. ARToolKitPlus was built for PDAs, smartphones and ultra-mobile PCs. Single-marker tracking took 5.4–14.8 ms on 2006-era Windows CE devices 6.
  • Web AR. AR.js tracks ARToolKit markers in the browser: its "Hiro" default, custom pattern markers trained into .patt files, and barcode markers selected with matrixCodeType 1819. Earlier, FLARToolKit (ActionScript 3.0, based on NyARToolKit) did the same in Flash 21.

No published source found for this page documents a named commercial deployment with numbers. The 2015 press release says only that ARToolKit was "one of the most widely used AR tracking libraries" with close to one million downloads 10.

Implementations

Project Language Stars Last active Marker support
artoolkitx/artoolkitx C/C++ 514 Nov 2026 Template and all matrix types; mk_patt, genMarkerSet, check_id; LGPL v3 111213
artoolkit/ARToolKit5 C++ 304 Jan 2020 ARToolKit 5.4, the DAQRI-era release (LGPL v3) 17
AR-js-org/AR.js JavaScript 5,995 Jun 2026 Web marker tracking via artoolkit5-js (LGPL v3); AR.js code MIT 19
artoolkitx/jsartoolkit5 JavaScript 308 Mar 2021 "Javascript ARToolKit v5.x" 24
paroj/artoolkitplus C++ 82 Jun 2017 ARToolKitPlus with 4,096 BCH ID markers (images in id-markers/); GPL-3.0 7
nyatla/NyARToolkit Java 52 Jan 2023 Pure-Java port based on ARToolKit 5.3.2; ARToolKit, NyId and NFT markers 22
Saqoosha/FLARToolKit ActionScript 17 Sep 2013 (last commit) Flash port, GPL v3 21
nicolocarpignoli/artoolkit-barcode-markers-collection images 92 Jan 2024 Ready-made 3×3 and 4×4 barcode markers 20

Star counts were read from the GitHub API on 6 November 2026. The barcode-marker collection notes that AR.js 3.3.3 and older support only 3×3 and 4×4 barcode markers, not 5×5 20. Barcoder does not generate ARToolKit markers. Pictorial markers are any image inside a border, and matrix markers come from the toolkits' own sets or generators 1213.

Comparison

ARToolKit template ARToolKit matrix (artoolkitX) ARToolKitPlus BCH ARTag AprilTag 36h10
Identity from Image correlation against trained .patt files Cell grid read as ID 36-bit code 36-bit code 36-bit code
Training needed Yes No No No No
Distinct IDs Up to 50 loaded at once 8 to 8.6 billion, by type 4,096 2,046 2,221
Minimum Hamming distance n/a 0 to 7 by type (19 for global ID) 2 4 10

Sources: 131415 for ARToolKit; 8 for ARToolKitPlus, ARTag and AprilTag.

Template versus coded markers. With templates, every candidate square must be compared with every loaded pattern at four orientations. That cost grows as markers are added, and similar patterns get mistaken for each other. Matrix markers read the ID directly, and with error-correcting codes they are the better choice when many markers must be identified reliably 13. Wagner and Schmalstieg give the same argument: N visible and M known markers need 4·M·N template matches, ID markers need none, and users rarely went beyond the sample patterns anyway 6. Templates keep one advantage: any picture, a logo or a name, can be a marker, which suits books and consumer pieces 15.

Versus ArUco, AprilTag and ARTag. Edwin Olson's AprilTag paper calls ARToolKit "among the first tag tracking systems". It notes that ARToolKit's fixed-threshold binarisation is fast but not robust to lighting changes, and "can not handle even modest occlusions of the tag's border" 8. Of the codes Olson tested, ARToolKitPlus's BCH scheme had the highest false-positive rate on 180,829 LabelMe images, with a minimum Hamming distance of only 2. His synthetic tests also had the ARToolKitPlus detector falling below 50% detection at about 25 m, where AprilTag held to 50 m 8. For robotics or large marker sets, those gradient-based, coded systems are the usual choice. ARToolKit's matrix mode with a BCH type narrows the coding gap, but it still uses ARToolKit's square detector 1314. Benchmarks of STag and TopoTag also include ARToolKit and ARToolKitPlus as baselines.

Fun facts

  • The 2.33 manual's tip for beating glare was to glue black velvet fabric to a white base, adding that "fuzzy" velvet paper from craft shops "also works very well" 2.
  • The original 1999 paper suggested that "user names or photos" could serve as marker patterns. Its use case was teleconferencing, where each marker carried a remote participant's video window 1.

Status

Active as open-source software, and historically important. artoolkitX released version 1.2.0 on 30 October 2026, sponsored by IQXR, LLC, under the LGPL v3 11. AR.js still uses ARToolKit markers for web marker tracking 19. The DAQRI-era ARToolKit5 repository has had no commits since January 2020, and paroj's ARToolKitPlus mirror none since June 2017 717. For new robotics and computer-vision work, coded systems such as ArUco and AprilTag are more common.

Sources

Deployments

No country reports mention this standard by name.

Regions / aggregations not mapped to a single country

  • Universal
source · content/standards/artoolkit-marker/index.md