Ejemplo n.º 1
0
        public void startNewVideoConsole()
        {
            VideoOutputWindow vo = new VideoOutputWindow();

            vo.Show();


            //now actually launch the process!
            //Process videoCaptureProcess = new Process();
            //videoCaptureProcess.StartInfo.FileName = "C:\\Users\\Matt\\Documents\\Source\\Final_Design\\x64\\Debug\\VideoStreamCPlusPlus.exe";

            /*parse through the arguments from the other app
             * Arg[0] = process filename
             * Arg[1] = lat-topLeft
             * Arg[2] = long-topLeft
             * Arg[3] = long-topRight
             * Arg[4] = lat-botLeft
             * Arg[5] = Picture mode; (0 = Internal Webcam; 1 = specify a file)
             * Arg[6] = Draw mode; (0 = Random points; 1 = Ordered line)
             * Arg[7] = file to open
             */
            /*videoCaptureProcess.StartInfo.Arguments = upperLeftCoords[0].ToString() + " " +
             *                                        upperLeftCoords[1].ToString() + " " +
             *                                        outerLimitCoords[0].ToString() + " " +
             *                                        outerLimitCoords[1].ToString() + " " +
             *                                        videoSource.ToString() + " " +
             *                                        drawMode.ToString() + " " +
             *                                        filenameToOpen;
             * //videoCaptureProcess.Start();
             */
        }
Ejemplo n.º 2
0
        public void populateDbFieldsVideo(GPSPacket gpsDataDb, VideoOutputWindow voForDb, string logReason)
        {
            try
            {
                //check where to append from - if table data already exists
                sql    = "SELECT MAX(eventID) FROM videoLog";
                cmd    = new MySqlCommand(sql, conn);
                result = cmd.ExecuteScalar();
                if (result != null)
                {
                    r = Convert.ToInt32(result);
                }
                else
                {
                    r = 2;
                }

                //append to the table if already existing
                result = null;

                //test writing new tables

                sql = @"insert into videoLog values("
                      + (r + 1) + ",'"                            //this is the overall DB ID
                      + gpsDataDb.date + "','"
                      + DateTime.Now.ToString("HH:mm:ss") + "','" //use the PC time since if GPS is stuck it'll report the same time!
                      + gpsDataDb.latitude + "','"
                      + gpsDataDb.longitude + "','"
                      + voForDb.currentlyActiveCamera + "','"
                      + voForDb.videoLogFilename + "','"
                      + logReason + "','" //event descriptions
                      + "27760934353" +   //sms number
                      "');";

                cmd    = new MySqlCommand(sql, conn);
                result = cmd.ExecuteScalar();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 3
0
        bool vidLogModeReady;       //if video logging format is selected

        public CameraBoundsSetup(VideoOutputWindow incoming_vo)
        {
            InitializeComponent();
            //--------------ORIGINAL CODE----------
            // camStreamCaptureArray_CB = new Capture[totalCameraNumber_CB];   //set up an array of capture objects
        }