I'm using JSARToolkit (https://github.com/artoolkit/jsartoolkit5) on a project. It makes a lot of things easier.
However, I've some trouble when I try to get all markers that have been detected, and their IDs.
I guess something like that...
arController.addEventListener('getMarker', function (e) {
console.log(e.data.marker.id);
});
...would do the job, but whatever marker I put in front of the camera, the ID is 0. When I log e
, I can't find any ID relative to the marker (e.g. https://raw.githubusercontent.com/artoolkit/artoolkit5/master/doc/patterns/Matrix%20code%203x3%20with%20parity%20(72dpi)/1.png : this marker ID should be 1).
Any ideas?