realmente un novato con EgmuCVEmguCV TypeInitializationException
trato de capturar imágenes de cámara web con el siguiente código:
//Program.cs (Winform)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.UI;
using Emgu.Util;
using Emgu.CV.Structure;
namespace EgmuCVTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Capture cp = new Capture();
ImageViewer imv = new ImageViewer();
Application.Idle += new EventHandler(delegate(object s, EventArgs ea)
{
imv.Image = cp.QueryFrame();
});
imv.ShowDialog();
}
}
}
consigo el error siguiente:
i compruebe y tenga todos los DLL necesarios en la carpeta .exe
Para mí sólo copiar el ** ** cvextern.dll de 'C: \ Emgu \ emgucv-windows-universal 3.0.0.2157 \ bin \ x86' a '... \ Visual Studio 2013 \ Projects \ ScreenAnalyzer \ TestProject \ bin \ Debug' trabajado para deshacerse de la excepción. –