ganwenyao / opencv_js Goto Github PK
View Code? Open in Web Editor NEWSome demos about opencv.js
Home Page: https://ganwenyao.github.io/opencv_js/
Some demos about opencv.js
Home Page: https://ganwenyao.github.io/opencv_js/
I'm trying to build opencv for use in my js project.
For the correct operation of the algorithm, I lack these functions:
The functions I need are in these packages:
But on the Internet I did not find the pre-compiled library with the functionality I needed. For this reason, I decided to build everything myself.
When assembling I am guided by https://docs.opencv.org/3.4/d5/d10/tutorial_js_root.html.
Compilation of the library was successful(!), but failed to build it.
LLVM
code and got the error:wasm-ld: error: Relocations not in offset order
*.so
files, but to no avail: This assembly option is prohibited:emscripten / cmake / Modules / Platform / Emscripten.cmake: set_property (GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE))
*. ar
archives format also ended with an error:error: undefined symbol: fp $ _ZN2TH11THFile_freeEPNS
I know for sure that these packages can be compiled in some way. Can you give me a guide or pin js file with pre-compiled modules?
I tried with the latest opencv (v4 I think) and your instructions almost all work.
It breaks with this change to embindgen.py
:
return re.sub(r"^cv\.[a-zA-Z0-9]*\.|cv\.", "", name).replace(".", "_")
Interestingly when I take that out and keep the original replacement, it seems to compile aruco fine - but no Dictionary class o_O
Would be helpful to have some other functions like Rodrigues and SolvePnP exported. Without those it's difficult to go past the basic axis demo.
This is the best repo and the only one that works with building openCV.js with the wrappers for aruco!
I'm also trying to include solvePnP and projectPoints from building openCV.js. I understand that you commented the overloaded or repeated function for aruco:
// CV_EXPORTS_W void drawMarker
I tried to do the same for projectPoints and it is not working.
Can you please provide some suggestions because you seem to know the workaround?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.