Beispiel #1
0
 private void Tracker_FormClosed(object sender, FormClosedEventArgs e)
 {
     server.DisconnectAll();
     lock (flags)
     {
         flags.End();
     }
     timer100ms.Stop();
     //threadCamera.Join();
     capture.Release();
 }
Beispiel #2
0
        private void Tracker_FormClosed(object sender, FormClosedEventArgs e)
        {
            server.DisconnectAll();
            lock (flags)
            {
                flags.End();
            }
            timer100ms.Stop();
            //threadCamera.Join();
            capture.Release();

            string arrStr = String.Format("{0} {1} {2} {3} {4} {5} {6} {7}", flags.configs.hue1Lower, flags.configs.hue1Upper, flags.configs.hue2Lower
                                          , flags.configs.hue2Upper, flags.configs.saturation1Lower, flags.configs.saturation2Lower
                                          , flags.configs.valueLower, flags.configs.areaLower);

            File.WriteAllText("data.txt", arrStr);
        }