You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nevertheless i often get an js exception as error1 and error2 being undefined in line 118. it seems to occurs randomly when i move the marker in front of the camera. it occurs even with your debug.html.
i know this is old code, but it gained popularity with the gogglepaper.com stuff :)
Ok, it took me a lot of time, but here is: Uncaught TypeError: Cannot read property 'euclidean' of undefined - posit1.js:119
Looking at the code, I think that the issue happens when the iterative POSIT algorithm (used to estimate the pose of the camera) converges before the first iteration:
var error;
...
while( iteration ++ < 100 && !converged ){
...
// bla, bla, ... error = some value (never reached)
...
}
return error; // <= undefined
I'll try to fix it.
In the meantime, you should try with the second POSIT algorithm (posit2.js) already included with the library. Just change this import: <script type="text/javascript" src="posit1.js"> to ..."posit2.js">
Hi
Im playing with js-aruco, it is a lot of fun
Nevertheless i often get an js exception as error1 and error2 being undefined in line 118. it seems to occurs randomly when i move the marker in front of the camera. it occurs even with your debug.html.
i know this is old code, but it gained popularity with the gogglepaper.com stuff :)
Any hint on how to fix it ?
from https://github.com/jcmellado/js-aruco/blob/master/src/posit1.js#L118
The text was updated successfully, but these errors were encountered: