In my WinForm app, I managed to display the camera feed to a pictureBox.
using System.Drawing;
using Image = Microsoft.Azure.Kinect.Sensor.Image;
using BitmapData = System.Drawing.Imaging.BitmapData;
Bitmap colorBitmap;
Bitmap depthBitmap;
(...)
Image depthImage = capture.Depth;
ushort[] depthArray = depthImage.GetPixels<ushort>().ToArray();
BitmapData bitmapData = depthBitmap.LockBits(...)
(...)
colorBitmap = new Bitmap(...)
(...)
depthBitmap.UnlockBits(bitmapData);
pictureBox2.Image = depthBitmap;
pictureBox1.Image = colorBitmap;
Similar to I set these images to a pictureBox, can I record these bitmap images to a video file?
I could simply save the image depthBitmap.save(...)
and colorBitmap.save(...)
to a create a sequence of png files but not a video.
I tried using Accord.Video.FFMPEG
and AForge.Video.FFMPEG
but none of them work with x64 arcticute that I requrire for to build Azure apps.
Appriciate your thoughts on this.