-
Notifications
You must be signed in to change notification settings - Fork 107
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
Build OpenCV as library #27
Comments
Currently working on a modified make.py that does exactly that. It's quite messy but maybe you want to take a look? If nothing else this is an example of how to build and link opencv during the compilation of your own project. |
Cool, where do I find it? |
I'll make it public as soon as I'm back at my desk. |
https://github.com/biggzlar/opencv_js_compiler Here you go. As mentioned, this is still in rough shape and there has been almost no testing. The example.cpp file contains some basic image manipulation methods (blur, threshold). Simply run:
Once compiled they can be called from within the javascript part in index.html (there is a helper function for html canvas interaction, taking one of the exposed functions as an argument). Just see if you can compile the example and use it in index. Let me know if you hit a bump! |
What platform do you use this on? Linux? OSX? |
Usually MacOs, just ran it on Ubuntu Linux and it worked with the latest OpenCV. |
On Ubuntu Linux, did you have to build Emscripten from scratch?
…Sent from my iPhone
On 2 Jun 2017, at 23:19, Lennart ***@***.***> wrote:
Usually MacOs, just ran it on Ubuntu Linux and it worked with the latest OpenCV.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I didn't have it on there so I did build it from scratch. |
Works now! Thanks! |
This is an amazing project, but I think it misses one very important opportunity: Allow people would to build they're OpenCV based project for the browser.
How can I build OpenCV as a library (no bindings), that I can then link to from my own libs?
The bindings/JS-expoting will be done from my own code.
I don't what to program my algorithms in JS, but instead export my C++ code with OpenCV linked internally. How can I do that?
The text was updated successfully, but these errors were encountered: