[英]Kinect Color Stream to AVI Video
我試圖從Kinect保存視頻。
我有WritableBitMap:
//Color frame ready
private void SensorColorFrameReady(object sender, ColorImageFrameReadyEventArgs e)
{
//Get Color Frame
using (ColorImageFrame colorFrame = e.OpenColorImageFrame())
{
if (colorFrame != null)
{
colorFrame.CopyPixelDataTo(this.colorPixels);
this.colorBitmap = new WriteableBitmap(App.KinectHelper.sensor.ColorStream.FrameWidth, App.KinectHelper.sensor.ColorStream.FrameHeight, 96.0, 96.0, PixelFormats.Bgr32, null);
this.colorBitmap.WritePixels(
new Int32Rect(0, 0, this.colorBitmap.PixelWidth, this.colorBitmap.PixelHeight),
this.colorPixels,
this.colorBitmap.PixelWidth * sizeof(int),
0);
}
}
}
如何從中創建視頻?
您應該嘗試使用Emgu CV ,它提供了一些DLL來將RGB流轉換為AVI。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.