Coder Social home page Coder Social logo

ganwenyao / opencv_js Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 14.0 133.96 MB

Some demos about opencv.js

Home Page: https://ganwenyao.github.io/opencv_js/

CMake 1.87% C++ 86.09% Cuda 3.58% Shell 0.11% HTML 0.45% CSS 0.01% JavaScript 0.24% TeX 0.15% Python 2.22% C 3.01% Java 1.72% Perl 0.03% Batchfile 0.01% Objective-C 0.02% Objective-C++ 0.43% Prolog 0.01% PowerShell 0.03% Makefile 0.01% Clojure 0.01% Scala 0.01%
javascript jsqrcode opencv

opencv_js's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

opencv_js's Issues

Features2d and Calib3d

I'm trying to build opencv for use in my js project.

For the correct operation of the algorithm, I lack these functions:

  • Point3f
  • solvePnP
  • Rodrigues
  • findHomography

The functions I need are in these packages:

  • Calib3d
  • Features2d

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.

  1. I tried to compile it in the LLVM code and got the error:
wasm-ld: error: Relocations not in offset order
  1. Next, I tried to compile it into *.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))
  1. The build method using static libraries in the *. 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?

update with latest opencv

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

Awesome! Likewise projectPoints from building openCV.js?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.