public void runPlayer() { double totalframe; double currentframe; cap = new Capture(openFileDialog1.FileName); totalframe = cap.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_COUNT); currentframe = cap.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES); while (currentframe <= totalframe ) { if (playerImage.InvokeRequired) { Bitmap img = new Bitmap(cap.RetrieveBgrFrame().ToBitmap()); //img = cap.RetrieveBgrFrame().ToBitmap(); this.playerImage.Image = img; playerImage.Show(); currentframe++; CvInvoke.cvWaitKey(33); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)