Skip to content

Pure Javascript porting of ArUco, a library for camera pose estimation using squared markers

License

Notifications You must be signed in to change notification settings

jingruchenmax/js-stackar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-stackar

js-stackar is a fork of js-aruco2 that supports custom dictionary for square markers. Additionally, this library includes a custom AR marker editor for creating custom AR marker dictionary for various interaction.

Demos

100% JavaScript (see details bellow):

Markers

A square grid with an external unused black border. Internal cells contains id information.

Usage

Create a Custom.js file in the src/dictionaries folder and paste the code generated by the Custom Marker Creator to use in demos.

//example of custom dictionary
AR.DICTIONARIES.MyDictionary = {
  nBits: 25,
  tau: 1,
  codeList: ['0x1084210UL', '0x1084217UL', ...]
};

nBits must contain the bit dimension of the markers in your dictionary. tau can contain the hamming distance of the codes in your dictionary (optional). codeList must be an array of strings containing the hexadecimal representation of every marker in your dictionary. The order is important because the position in the array represents the marker id.

The defined dictionary is then available to the detector:

var detector = new AR.Detector({
  dictionaryName: 'MyDictionary'
});

About

Pure Javascript porting of ArUco, a library for camera pose estimation using squared markers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%