Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var dialog = new OpenFileDialog();

            dialog.Filter = "Arquivos de vídeo|*.mp4;*.mov;*.avi;*.wmv";
            dialog.Title  = "Selecione um arquivo de vídeo";
            DialogResult dr = dialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                this.filepath = dialog.FileName;
                if (dialog.FileName != "")
                {
                    Frontend fr = new Frontend(this.filepath, dialog.FileName);
                    fr.ShowDialog();
                }
            }
            else
            {
                return;
            }
        }
Esempio n. 2
0
        private void ExecutarBTN_Click(object sender, EventArgs e)
        {
            Frontend fr = new Frontend($"Gráfico de {DateTime.Now.ToLongDateString()}");

            fr.ShowDialog();
        }
Esempio n. 3
0
 public VideoProcessor(Form parent_component)
 {
     this.parent     = (Frontend)parent_component;
     this.video_feed = new VideoCapture();
     this.parent.videoFrames.Image = video_feed.QuerySmallFrame().ToImage <Bgr, Byte>().ToBitmap();
 }