using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Timers;
using System.Threading;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.Util;
namespace FaceCapture
{
public partial class MainWindows : Form
{
private string haarXmlPath = "haarcascade_frontalface_alt_tree.xml";
double scale = 1.5;
private Capture capture;
private bool capture_flag = true;
private Image<Bgr, Byte> frame = null;
Image<Gray, Byte> gray = null;