所以我用“emgu.cv”来捕捉图像。我是c#的新手并且一开始就坚持了下来。无法弄清楚如何使其成为非静态的。尝试了很多在线解决方案
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
VideoCapture capture = new VideoCapture();
Bitmap image = VideoCapture.QueryFrame().Bitmap;
}
}
}
您需要引用类的实例而不是类:
Bitmap image = capture.QueryFrame().Bitmap;