webarkit / webarkit-testing

Testing a new version of WebARKit
https://www.webarkit.org/examples/webarkit-testing/
GNU General Public License v3.0
2 stars 0 forks source link

improving transmatrix and related functions #26

Open kalwalt opened 3 months ago

kalwalt commented 3 months ago

Improving transmatrix and related functions and other improves

This PR try to improve the transmattrix and related functions but also add a bunch of improves in different part of the code. I have tested the code that use Th Grayscale class and the other: we can exclude that use a different OpenCV code base so i noted that for example with teblid example i got a maximum of feature points instead with the three.js - jsfeatNext example i got much less. I have the suspect that there is a discrepance in the video data ( and this only a js code issue) between the video data passed by the Grayscale.js and the video data (also this in Gray format) from jsfeatNext. I will try to find the reason, if i solve this issue the code will be ready to be released.

kalwalt commented 2 days ago

I'm trying to improve the threejs_ES6_example. Now i got maximum of keypoints (1000 frame keypoints) as for the teblid_example. This is an improvement in the issue but still the code not goes in the start tracking phase, What is wrong yet? I noticed that we get few fps in the worker. and the number of keypoints and matches is always to the maximium. Instead with the teblid example they goes up and down depending on whether the pinball image is scanned or not.

note: if you want to try, you can see the num. of keypoints in the console with other infos.

kalwalt commented 2 days ago

I have little test in the chrome performance console and it seems that the https://github.com/webarkit/webarkit-testing/blob/771a085d6c671f4cb4a01e82331e58bf79e31693/examples/threejs_worker_ES6.js#L203 function doesn't update continuosly the data, and this explains the continuos of same data (num. keypoints) in the console. I will look at how can i make the stream continuos.