EmguCv 4.2.0.3636

Ask questions for installation
Post Reply
DllNotFound
Posts: 1
Joined: Wed Feb 05, 2020 3:57 am

EmguCv 4.2.0.3636

Post by DllNotFound » Wed Feb 05, 2020 4:07 am

Hello, I am having trouble to use the newest version of Emgu.Cv that is available in the NuGet-Package-Manager of Visual Studio(C#).
This code snippet works in 4.1.0.3497, but not in 4.2.0.3636.

Code: Select all

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Emgu.CV;
using Emgu.Util;
using Emgu.Util.TypeEnum;
using Emgu.CV.Util;
using Emgu.CV.Structure;

namespace EmguCvUpdateTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string sImagePath = @"C:\Image.bmp";
            Image<Bgr, byte> img = new Image<Bgr, byte>(sImagePath);

            CvInvoke.Imshow("image", img);
            CvInvoke.WaitKey();
        }
    }
}

It compiles, but when executing it crashes with

Code: Select all

System.TypeInitializationException: "Der Typeninitialisierer für "Emgu.CV.CvInvoke" hat eine Ausnahme verursacht."
DllNotFoundException: Die DLL "cvextern": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.
Unfortunately it's difficult to get english error messages in Visual Studio (who has designed this? Absolutely stupid), so I am going to translate it manually:
System.TypeInitializationException: "The type initializer for"Emgu.CV.CvInvoke" has raised an exception."
DllNotFoundException: The Dll "cvextern": The indicated module was not found. (Exception of HRESULT: 0x8007007E) could not be loaded.[/code]
Kind regards

Post Reply