Ejemplo n.º 1
0
        public socketThread(object rtb, object manageDisp, string addr, int port)
        {
            _serverIP = addr;
            _port     = port;
            _rtb      = (System.Windows.Forms.RichTextBox)rtb;

            _manageDispCtrl = (ManageDisplayControls)manageDisp;

            _camMemSerialDeserial = new camMemoryStreamSerializerDeserialzer();

            thSocketListening = new Thread(ListeningServerLaunchClientThreads);

            thSocketListening.Start();

            thWebCamDisplay = new webCamDisplayThread(_cibox);
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            _formatter    = new BinaryFormatter();
            _cMemSerDeser = new camMemoryStreamSerializerDeserialzer();

            CvInvoke.UseOpenCL = false;
            try
            {
                _capture = new VideoCapture();
                _capture.ImageGrabbed += ProcessFrame;
            }
            catch (NullReferenceException excpt)
            {
                MessageBox.Show(excpt.Message);
            }
            _frame = new Mat();
        }