Skip to content

nicolocarpignoli/artoolkit-barcode-markers-collection

Repository files navigation

Artoolkit Barcode Markers collection

A collection of ready-to-use Barcode markers.

I created all markers for each kind of configuration. You can see the following table for details.

Markers are on separate folders. Look out for folder name for marker configurations, and file names for the specific value of each barcode.

I generated only Barcode markers with an Hamming Distance greater than 0, otherwise they will be practically unusable. Just remember: the higher the Hamming distance, the better for recognization.

Important

Keep in mind that when you add this spec on your AR.js scene: ...detectionMode: mono_and_matrix; matrixCodeType: 3x3;’ you are using the AR_MATRIX_CODE_3x3 (so refer to the markers inside the "3x3" folder on this repo).

Other values can be set this way:

type of matrix code - valid iif detectionMode end with 'matrix' - [3x3, 3x3_HAMMING63, 3x3_PARITY65, 4x4, 4x4_BCH_13_9_3, 4x4_BCH_13_5_5]
matrixCodeType: '3x3'

Also important

As for now, on AR.js 3.3.3 (and older versions) the only barcode markers that are supported are 3x3 and 4x4, NOT 5x5. For more details, you can check the supported mapped version here: https://github.com/artoolkitx/jsartoolkit5/blob/244b2b23286403e78fa24805b34509dc5a88052f/emscripten/ARBindEM.cpp#L125-L130

Is there a live version of a barcode marker generator?

Yes, there is: https://au.gmented.com/app/marker/marker.php

But it is not open source and who knows for how long it will remain online. So for now it works. In case it stops working, you can still use the markers on this repo.

Available markers

Matrix code type Folder name Maximum number of markers Hamming distance AR.js 3 support
AR_MATRIX_CODE_3x3 3x3 64 0 yes
AR_MATRIX_CODE_3x3_PARITY65 3x3_parity_6_5 32 1 yes
AR_MATRIX_CODE_3x3_HAMMING63 3x3_hamming_6_3 8 3 yes
AR_MATRIX_CODE_4x4_BCH_13_9_3 4x4_bch_13_9_3 512 3 yes
AR_MATRIX_CODE_4x4_BCH_13_5_5 4x4_bch_13_5_5 32 5 yes
AR_MATRIX_CODE_5x5_BCH_22_7_7 5x5_bch_22_7_7 128 7 no
AR_MATRIX_CODE_5x5_BCH_22_12_5 5x5_bch_22_12_5 4096 5 no

Learn more

Credits

🐈 Thanks to @fquffio for this.

About

A collection of ready-to-use Barcode markers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published