VS2010+C#+EMGUCV Configuration Detailed

Source: Internet
Author: User

The following methods are configured in VS2010 (VC10) to invoke the open CV Visual library using the C # development language. As we all know, the OPENCV library that can be used for C # is called: Emgu CV. Note that in C # development, it is not necessary to install OPENCV alone, EMGU CV has included!!

1. Download the x86 installation version of EMGU CV

http://sourceforge.net/projects/emgucv/files/ ;

2. Installation

Double-click the installation file, the next step, I agree, the default configuration installed to the C drive;

3. Set environment variables (restart the computer or log off after Setup):

Path (add the following line; If you do not have a path, you can create it yourself; If you modified the default installation path for EMCU CV, modify it to the appropriate path yourself):

C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin

Note that 2.4.9 or more versions of EMGUCV, set the environment variable path slightly different, DLL in the Bin subfolder x86 inside (in short, to select the path of the DLL ), for example:

C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\x86

Note: The following steps are required after each new project.

4. New Project

Create a new solution and build a project that is based on a Windows Forms application under C #:

5. Import UI Plugin

Click Tools (T), select Toolbox items (X) ..., select: ". NET Framework Components" in the newly opened window, and click "Browse" to the directory: C:\Emgu\emgucv-windows-x86 2.3.0.1416\bin, Double-click Emgu.CV.UI.dll.

6. Adding references

Right-click References under the project you just built in Solution Explorer, select Add Reference, and in the new pop-up window, select Browse to directory: C:\Emgu\emgucv-windows-x86 2.3.0.1416\bin, Select: Emgu.CV.dll, Emgu.CV.ML.dll, Emgu.CV.UI.dll, Emgu.Util.dll, ZedGraph.dll a total of five DLL files, and click OK to join.

————————————————————————————————

As above, all configuration has been completed, if there is a special purpose, you need to call to other methods in the DLL, please self in the bin directory, the corresponding DLL file referenced to the project.

On the web down some simple demo code, copy into the project, you can verify the configuration is successful.

————————————————————————————————

Common Error Solutions:

1, in case of error warning: Tbb_debug.dll can't find

To install the Intel TBB Library, you need to configure the path where the TBB library or DLL file is located, with the system environment variable path.

2, in case of error: "Emgu.CV.CvInvoke" type initializer throws an exception

(1), log off or restart the computer, so that the system environment variables in the path into effect;

(2), to find the corresponding DLL file through the path set in paths, to see if there is a successful reference to VS;

(3), copy DLL file to debug and release directory.

(4), try to reduce the version of the. Net Framework, if the 4.0 is reduced to 3.5, if 3.5 is reduced to 2.0.

VS2010+C#+EMGUCV Configuration Detailed

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.