将图像叠加到Kinect的视频中 [英] Overlay an image into video from Kinect

查看:79
本文介绍了将图像叠加到Kinect的视频中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




    我试图在使用Microsoft Kinect制作的实时视频上叠加图像。使用的IDE是Visual Studio Professional 2010.代码是用
C ++开发的。视频使用Kinect显示。当我尝试在实时视频上叠加图像时,我无法看到图像。视频以30帧/秒的速度运行。我米使用手柄即&NBSP加载图像; 



        



                  &NBSP ;     HANDLE
HBITMAP;             



            hBitmap = LoadImage(NULL,L" C:\\Users \\User \\ \\\Documents\\Visual Studio 2010 \\Projects \\ ImageVirtual \\ ImageVirtual \\\\ BMP_Image.bmp",IMAGE_BITMAP,
0,0,LR_LOADFROMFILE);



 



我必须加载此图片并将其叠加到特定位置的视频上。



 



 我将放在rc文件对话框中的图片控件的ID传递给kinect,以加载实时视频并显示它。我不是在代码中使用任何
MFC。
 视频使用Direct 2D机制呈现



      I
有以下疑问:



·          如何在现场视频中加载和叠加图片
 
在特定位置



·         
是否可以使用相同的图片控件叠加图像和视频,或者是否需要为图像和视频使用两个不同的图片控件,然后将图像叠加在视频上?



 



注意:



      我试图在视频上覆盖图像,该视频类似于Microsoft Kinect SDK中的FaceTracking机制。



期待最早的积极回应。



-------



问候,


维韦克

解决方案
你试图做类似的绿色筛选的东西,如果?那么,看一下最新工具包中的C ++ Green Screen-D2D示例。


Hi,

    I m trying to overlay an image on a live video produced using Microsoft Kinect. The IDE used is Visual Studio Professional 2010. The code is developed in C++.The video is displayed using Kinect. When I try to overlay image on the live video, I m not able to see the image. The video is running at 30 frames / sec. I m loading the image using a handle i.e.  

        

                       HANDLE hBitmap;            

             hBitmap = LoadImage(NULL, L"C:\\Users\\User\\Documents\\Visual Studio 2010\\Projects\\ImageVirtual\\ImageVirtual\\BMP_Image.bmp",IMAGE_BITMAP, 0,0, LR_LOADFROMFILE );

 

I have to load this image and overlay it on to the video at a specific location.

 

  I m passing the ID of a picture control, placed on the dialog box in the rc file, to the kinect to load the live video and display it. I m not using any MFCs in the code. The video is rendered by using Direct 2D mechanism

     I have the following doubts:

·         How to load and overlay the image on the live video at a specific location.

·         Is it possible to overlay image and video using the same picture control or is it necessary to use two different picture controls for image and video and then overlay the image over the video?

 

NOTE :

       I m trying to overlay image on a video which is similar to the FaceTracking mechanism in Microsoft Kinect SDK.

Looking forward for a positive response at the earliest.

-------

Regards,

Vivek

解决方案

are you trying to do something similar to Green Screening? If so, take a look at the C++ Green Screen-D2D sample in the latest toolkit.


这篇关于将图像叠加到Kinect的视频中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆