emgucv

The type initializer for 'Emgu.CV.CvInvoke' threw an exception

喜你入骨 提交于 2019-11-26 09:53:37
问题 I\'m getting this error The type initializer for \'Emgu.CV.CvInvoke\' threw an exception. when I try to use Emgu CV. I\'ve tried everything I can think of to fix this but it\'s still giving the same error, and when I click a button it shows Object reference not set to an instance of an object. This is the code I\'m trying: void ProcessFunction(object sender, EventArgs e) { imgOrg = capturecam.QueryFrame(); if (imgOrg == null) return; imgProc = imgOrg.InRange(new Bgr(50, 50, 50), new Bgr(255,