javascript - artoolkit.AR_MATRIX_CODE_4x4 -
i'm using example jsartoolkit in example default matrix_3x3, want use matrix_4x4 change lines of code;
arcontroller.setprojectionnearplane(1); arcontroller.setprojectionfarplane(1000); arcontroller.setpatterndetectionmode(artoolkit.ar_matrix_code_detection); arcontroller.setmatrixcodetype(artoolkit.ar_matrix_code_4x4); and generate markets using link marker creator
but can't read id code example( when want read de barcode #1 program returns value 440) code;
var detectedbarcodemarkers = {}; arcontroller.addeventlistener('getmarker', function(ev) { var barcodeid = ev.data.marker.idmatrix; if (barcodeid !== -1) { console.log('saw barcode marker' + ev.data.marker.idmatrix); } }); what doing wrong???
thank all!!
Comments
Post a Comment