-2
我試圖將視頻幀保存到文件夾,但它不工作。我爲這個項目使用emgu cv圖像處理庫。將視頻幀保存爲圖像c#,Emgu cv
public void ProcessFrame(object sender, EventArgs arg)
{
Mat mat = new Mat();
capture.Retrieve(mat);
FrameRate = capture.GetCaptureProperty(Emgu.CV.CvEnum.CapProp.Fps);
Thread.Sleep((int)(1000.0/FrameRate));
imageBox1.Image = mat;
if (mat != null)
{
mat.Save(@"C:\Desktop\images");
}
else
{
MessageBox.Show("null image");
}
//GetVideoFrames1();
}
我實際上是新的圖像處理和Emgu cv我試圖將視頻的圖像保存到數據庫。你能給我的問題一些指導 –
嗨,這不是一個問題!這會將幀寫入.avi視頻文件。看看我附加的鏈接,它提供了它如何工作的信息。 –
感謝盧克生病了 –