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 OpenCVDotNet; namespace nghich2 { public partial class Form1 : Form { private CVCapture capture; public Form1() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { using (CVImage nextFrame = capture.QueryFrame()) { pictureBox1.Image = nextFrame.ToBitmap(); } } private void Form1_Load(object sender, EventArgs e) { capture = new CVCapture(); } } }
Quote: [^] [^] [^] refer these articles
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)