webarkit / webarkit-cv

WebARKit thanks to OpenCV and Emscripten
4 stars 1 forks source link

examples fails with ImageData error #11

Open kalwalt opened 6 days ago

kalwalt commented 6 days ago
          ![Screenshot 2024-10-17 115915](https://github.com/user-attachments/assets/f12f3972-d107-47b5-876c-d84fcbb9ffda)

can you give a quick tutorial steps on how to use this? i tried running the examples, but its throwing some imagedata issue from the script.

Originally posted by @GamerDevarsh in https://github.com/webarkit/webarkit-cv/issues/10#issuecomment-2418558850

kalwalt commented 6 days ago

@GamerDevarsh i just tested the examples and i confirm the issue. Probably i missed to upload some commit. I will try to correct this and add a brief tutuorial. Anyway the initial idea was to convert the code in WebARKitLib dev branch https://github.com/webarkit/WebARKitLib/tree/dev/WebARKit loading the opencv.js and avoid to compile the C++ code. But i found some difficulties converting the code from C++ to js because the methods in opencv.js are a bit different from the original, and there is not so much documentation for opencv.js method and classes. I hope to go ahead of this issues and develop a more mature version of the code.