2

I am trying to use the OpenCV library in order to load an image in a VB window. I am using Visual Studio 2012, I have no idea how to add OpenCV references into my VB.NET project!

How can I fix this problem?

Enter image description here

5
  • 1
    OpenCV is for unmanaged languages such as C or C++/Win32. Use the managed EmguCV wrapper instead. Commented Jul 22, 2016 at 20:57
  • So, if I understand you well, it is impossible to integrate OpenCV directly in .NET environnement. Should I absolutly use the EmguCV wrapper ? Commented Jul 22, 2016 at 21:23
  • Yes it is impossible since C# and VB.NET (etc.) don't understand the native machine code. But what's wrong with using a wrapper? A wrapper is usually designed very similar to the base library, and in the end it calls the methods in the base library anyway. Commented Jul 22, 2016 at 21:28
  • If you know your way around C++ and/or C++/CLI you can create your own wrapper for the OpenCV methods, structures and classes that you need. Commented Jul 22, 2016 at 21:34
  • Great ! thanks a lot, you saved me. Commented Jul 23, 2016 at 16:27

1 Answer 1

3

First this: https://www.nuget.org/packages/OpenCV.Net/ and then replace your 'using ??' with: Imports OpenCV.Net

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.