-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation caveats #1
Comments
Hello there! Thanks for the feedback. Regarding the first problem, I'm noticing there's no getting started instructions in the readme. I will work on that ASAP putting emphasis on how to define the opencv.js file location and load format proxies using jimp or similar.
Although the cv global is created automatically the statements above can be used to get its typings and it's OK to redefine it like that. Are you saying it didn't work on your case ? Finally, regarding the last error which only show a number as error message, that happens when there's an error at the web assembly level (c++ code) and unfortunately, for getting more debug information in these cases, opencv.js needs to be compiled with emscripten debug options which is not. I'm aware of this limitation and probably will PR opencv repo to be able to compile the wasm with more debugging options and probably will distribute two versions of the opencv.js file, one for production and another with debug/trace options enable so it's easy to switch between them. Stay tuned, thanks! |
Yea, I noticed the instructions missing with
If I do that, I'll get Right now everything is working fine this way. |
First of all, thanks for this lonely effort, it's literally amazing. I am really glad someone has done this, and with all typescript definitions and jsdoc it's just invaluable.
I got it working after few hours but there were few gotchas that are not mentioned anywhere and I don't really understand them.
opencv.js
file in in urlhttp:/localhost:8080/opencv.js
, I got it working by copying theopencv.js
file from node_modules to statics folder and with the following code:I don't really understand what's the problem there, though. I thought it should work just by importing Mirada like this and I haven't found any similar code in your playgrounds. Doesn't seem like you serve your node_modules or anything like that.
cv
variable. The thing that I did just intuitively was naming the importcv
. But apparently (as far as I understand, from one of your comments on opencv repo), opencv creates globalcv
variable which I shadowed this way. This led me to bunch of pretty confusing errors.I think I also found some code in the playground that confused me, that seems related, something along the lines of:
Anyway, those are just things I don't really know how to get right, but apart from that, the work is amazing ;)
The text was updated successfully, but these errors were encountered: