EmguCV solves an exception.

Source: Internet
Author: User

EmguCV solves an exception.

This year, my team had a big project on its head, and I couldn't go home and engage in Cocos2dX just as I did last year...

Back to the topic, because an automatic test project of the display board needs to be created in the group, involving Computer Vision. I have to say that this is a big pitfall in the project. I have been developing other basic libraries and recently started the development of visual recognition. Because there is no suitable open-source industrial camera on the market, you can only try some visual libraries that have already been set up. In the early stage, when the project architecture was in C #, we naturally thought of OpenCV's Emgu CV library packaged in C #. Moreover, this library is cross-platform and is suitable for later porting to other platforms, I chose this library to try.

During the attempt, a strange exception occurs. The following statements can be passed during the compilation period, but many problems may occur during running. When I am developing at home, everything works normally, but when I send the workflow to the company, the company's machines cannot run normally, and loading exceptions occur, it is obvious that the X86 Platform calls X64 DLL. According to the Internet, the X86 folder of Emgu cannot be loaded even when it is placed in the Debug folder. It has crashed, but after a few hours, the configuration is different from that between the company machine and the home machine, and the problem is solved after a small adjustment.

Capture capture = new Capture (); // create a camera captue

Solution steps: 1. Under the vsplatform, adjust the project attribute from Any CPU to X86

2. If your machine is X86, remember to put the path of the X86 folder under Emgu into the environment variable,Before the X64 folder path.This difference only took me a few hours.

The little hands shake and spread a little experience, so that more people trapped in EMGU's differences between X86 and X64 platforms can solve the problem.

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.