Giter VIP home page Giter VIP logo

ng-open-cv's Issues

OpenCVOptions object does not get applied

While working with this library I've found that the options object does not get applied (the DEFAULT_OPTIONS are always applied).

After some digging, I think the problem is in this line (the provided options object is missing the spread operator):

const opts = { ...this.DEFAULT_OPTIONS, options };

Currently the provided options object is nested inside the default options.

I think the correct solution should be:

const opts = { ...this.DEFAULT_OPTIONS, ...options }; 

Wrong wasm file path in service?

Just tried testing this and the service creates a wrong path for me in this function:

private locateFile(path, scriptDirectory): string {
    if (path === 'opencv_js.wasm') {
      return scriptDirectory + '/wasm/' + path;
    } else {
      return scriptDirectory + path;
    }
}

The adding of the '/wasm/' result in an incorrect link as the path already seems to be 'http://localhost:4200/assets/opencv/wasm/3.4/'.
This is happening in Angular10 in development mode.

How can I use this ng-open-cv in the more update Angular Platform

After I take a look at this package, i just wonder how can use this OpenCV library for Angular to the more updated version of Angular Platform such as Angular 10.

Furthermore, I have learnt that OpenCV has been updated to version 4.5.3 which I have found when I compile the raw OpenCV library into OpenCV.js by using Emscripten 2.0.10 which have resulted in the following files:

loader.js
opencv.js
opencv_js.js

I just wonder if I can use the updated version of OpenCV.js to update ng-open-cv library.

Safari on iOS: Assertion failed: no binaryen method succeeded.

On trying to load the library in Safari on iOS 11, you get 2 errors:

Assertion failed: no binaryen method succeeded.

and

abort("Assertion failed: no binaryen method succeeded."). Build with -s ASSERTIONS=1 for more info.

Which results in OpenCV failing to load and causing a

ReferenceError: Can't find variable: cv

error.

Unable to interpret output of cv.imread().

Hi Devakone,

While calling the cv.imread() function from angular I am getting the output as attached below, which I am not able to interpret. I am expecting a output like python opencv imread, i.e. a MxNx3 matrix.
Could you please help me to map the angular output with python output.

Attaching angular outputs below.

Screenshot from 2020-03-12 18-27-11
Screenshot from 2020-03-12 18-27-23
Screenshot from 2020-03-12 18-27-29

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.