Esempio n. 1
0
 public ConvexHull()
 {
     InitializeComponent();
     //@"C:\Users\ahmed nady\Videos\Debut\test.avi" 00023.MTS MOV_0016 @"D:\Working\STREAM\ahmednady.asf"
     camera             = new Capture(/*@"C:\Users\ahmed nady\Videos\Debut\5.avi");*/ @"F:\Working\Final phase\DataSet\sequence.avi");
     fingerTipDetection = new FingerTip();
     skinDetector       = new YCrCbSkinDetector();
     candidateTips      = new List <Point>();
     fingerTracker      = new List <Tracks>();
     // adjust path to find your XML file
     //haar = new HaarCascade("FingerTips.xml");
     hsv_min   = new Hsv(0, 45, 0);
     hsv_max   = new Hsv(20, 255, 255);
     YCrCb_min = new Ycc(0, 131, 80);
     YCrCb_max = new Ycc(255, 185, 135);
     //$N
     rec = new GeometricRecognizer();
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\TranslateLeft.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\TranslateRight.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\RotateLeft.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\RotateRight.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\ZoomIn.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\ZoomOut.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\KZoomIn.xml");
     rec.LoadGesture(@"C:\Users\ahmed nady\Documents\KZoomOut.xml");
 }
Esempio n. 2
0
        public HandTracking()
        {
            fingerTipDetection = new FingerTip();

            InitializeComponent();
            System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.High;
            _capture = new Capture();//"LucaHead.wmv");
            // adjust path to find your XML file
            haar = new HaarCascade(@"F:\Working\Final phase\aGest.xml");
        }