Open kalwalt opened 3 years ago
It's been a while when i opened this issue, but In this project i focused primarly on the C++ code and the wasm generated code thanks to Emscripten. It use OpenCV for image tracking and other tasks. I'm testing different algorithms for detection and tracking ( Orb, Akaze, Freak and Teblid) . It works quite good with a desktop PC, we can't say the same on a mobile. It Is needed a set of improvements in the code that i wll do in the next chapter of the development.
I will share with you some thoughts:
Bundler Actually i'm using webpack as a bundler, but we are free to use another bundler, for example Rollup or Parcel. We should understand what better fits our needs.
Entry point of the library: At the moment we export as a module the two WebARKit and WebARController in the index.js file https://github.com/kalwalt/webarkit-testing/blob/7034e6d9e05cefc3b98010bde4ecd707fdc68f40/src/index.js#L1-L6 Does it is what we want/needs? in CommonJS code to initalize the module you need https://github.com/kalwalt/webarkit-testing/blob/7034e6d9e05cefc3b98010bde4ecd707fdc68f40/examples/example.html#L11-L14 maybe better would be write:
WebARKitController.init().then(wark => {
but this is not allowed because the lib is exported in that way.This list is not complete, i will update while issues will emerge in the development.