3 Replies Latest reply on Apr 9, 2018 9:53 AM by MartyG

    D435: Convert Videoframe to Bitmap in C#

    NikoBele

      Hello,

       

      i am looking for the fastest conversion of a Videoframe to a Bitmap.

      Currently i am doing this:

       

      Bitmap bmp = new Bitmap(frame.Width, frame.Height, frame.Stride, System.Drawing.Imaging.Pixelformat.Format24bppRgb, frame.Data);

       

      Afterwards i am doing a face detection and recognition with the Bitmap and display it through a System.Windows.Controls.Image.

       

      Using a regular Webcam or the R200 works smooth, but the output is laggy when i am using the D435.

       

       

      Any ideas?