Giter Club home page Giter Club logo

Comments (7)

kyamagu avatar kyamagu commented on July 18, 2024

What is your OpenCV version? If you're using 2.3.x, please use the mexopencv v2.3 branch.

from mexopencv.

axjensen avatar axjensen commented on July 18, 2024

I'm using OpenCV version 2.4.4 and latest mexopencv

from mexopencv.

kyamagu avatar kyamagu commented on July 18, 2024

Alright, then you need to make sure your shared object is loaded in matlab as expected. Repeat the following steps to find a missing dependency.

Use ldd in unix shell.

$ ldd /home/aej/Downloads/mexopencv/+cv/private/FeatureDetector_.mexa64

Use ldd in matlab shell.

>> !ldd /home/aej/Downloads/mexopencv/+cv/private/FeatureDetector_.mexa64

Find any difference in the loaded libraries. Usually such libraries are causing error. If you find any, such as libstdc++ or libgcc_s, put them in the LD_PRELOAD variable before launching matlab.

LD_PRELOAD=/usr/lib/libstdc++.6.so matlab

If you still cannot solve this issue, I suspect your opencv installation is missing something.

from mexopencv.

axjensen avatar axjensen commented on July 18, 2024

Thank you.

This doesn't seem right:

From matlab !ldd:

...
libopencv_core.so.2.4 => /usr/local/MATLAB/R2013a/bin/glnxa64/libopencv_core.so.2.4 (0x00007f63ce2ac000)
libopencv_features2d.so.2.4 => /usr/local/MATLAB/R2013a/bin/glnxa64/libopencv_features2d.so.2.4 (0x00007f63ce01c000)
...

and from console ldd:

...
libopencv_core.so.2.4 => /usr/local/lib/libopencv_core.so.2.4 (0x00007f0cf327a000)
libopencv_features2d.so.2.4 => /usr/local/lib/libopencv_features2d.so.2.
...

There shouldn't be any OpenCV related stuff under MATLAB, right? Or is this copied during 'make' in mexopencv?

Thanks

from mexopencv.

axjensen avatar axjensen commented on July 18, 2024

Hmm, if I, for instance, preload OpenCV core and High gui, then things starts to work again. For instance cv.imread is working again.

I can't figure out why these opencv shared objects are in the matlab installation. Is it something new or have I done something wrong?

from mexopencv.

kyamagu avatar kyamagu commented on July 18, 2024

This can happen if you have the computer vision toolbox from mathworks. They internally use opencv, and therefore it gives you version conflict. Unless you link mexopencv with these mathworks-provided libraries, you should preload to avoid issues.

from mexopencv.

axjensen avatar axjensen commented on July 18, 2024

Thank you. That would be the reason. I will preload OpenCV libs.

from mexopencv.

Related Issues (20)

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.