Coder Social home page Coder Social logo

Updating the OpenCV dependence about caffe HOT 6 CLOSED

microsoft avatar microsoft commented on July 19, 2024
Updating the OpenCV dependence

from caffe.

Comments (6)

pavlejosipovic avatar pavlejosipovic commented on July 19, 2024

Looks like the opencv3 uses static linking, so dll's shouldn't be necessary.
Seems like you haven't configured all project properly to use new opencv package.

from caffe.

pavlejosipovic avatar pavlejosipovic commented on July 19, 2024

My bad, dlls are included through https://www.nuget.org/packages/opencv3.redist/ which is dependency.
I was able to replace existing opecv package just by using UI in VS. It compiles and runs test OK.
If you are having issues configuring it I can share my version somewhere for you to try it out.

from caffe.

lunzueta avatar lunzueta commented on July 19, 2024

Thanks for the tip @pavlejosipovic. I also realized about that "redist" package, but I wasn't sure how to use it because I see it has the dll-s but not the libs to be linked. So, you mean that you used the VS UI to replace the current OpenCV package by this one? How did you do that exactly?

from caffe.

lunzueta avatar lunzueta commented on July 19, 2024

@pavlejosipovic Ok, I could finally get this working with OpenCV3. For that, I added both OpenCV3 packages (the "redist" one with the dll files and the one with the lib files) at the same time. I first tried following this tutorial (http://docs.nuget.org/consume/package-manager-dialog) to do this through the VS UI, but I go stuck. This way, I didn't know how to make the system copy the dll files to the corresponding build folder automatically, as other packages do (probably I'm missing something). Then, I just added the "redist" package in a similar way to the other one, also adding the path to the "opencv3.redist.targets" file in the .vcxproj files in the same way as "opencv3.targets".

from caffe.

pavlejosipovic avatar pavlejosipovic commented on July 19, 2024

To do it through UI you should

  • Right click on solution -> Manage NuGet packages for Solution
  • Installed packages -> select opencv -> Manage -> uncheck from all projects
  • Online -> find package you want to add -> Install -> add to all projects

from caffe.

lunzueta avatar lunzueta commented on July 19, 2024

@pavlejosipovic Ok, thanks. It's all clear now. Good to know how NuGet works for this. Great tool.

from caffe.

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.