Getting RGB Frame based on coordinate and size RRS feed

  • Question

  • Hi, I would like to take a frame that captured RGB of user face. I have coordinate and size of face frame based on faceResult.FaceBoundingBoxInColorSpace. These my current code on getting the coordinate and size:

    // draw the face bounding box
    var faceBoxSource = faceResult.FaceBoundingBoxInColorSpace;
    Rect faceBox = new Rect(faceBoxSource.Left-100, faceBoxSource.Top-150, 400, 500);
    drawingContext.DrawRectangle(null, drawingPen, faceBox);

    Now, I would like to have a color frame that only captured image based on those coordinate and size (width and height). How can I create it ?

    Thank You

    Adityo Setyonugroho

    Friday, May 22, 2015 4:19 PM