public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Button1_Click(object sender, EventArgs e)
{
VideoCapture capture = new VideoCapture();
var img = capture.QueryFrame();
imageBox1.Image = img;
}
}
}
This is my code and I can't seem to make it work. Everything seems fine, I am unable to Debug. My ImageBox
is not streaming a video just showing an image.