《Kinect 开发简述.pptx》由会员分享,可在线阅读,更多相关《Kinect 开发简述.pptx(15页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、真的真的是简述*Kinect有三个镜头,中间的镜头是 RGB 彩色摄影机,左右两边镜头则分别为红外线发射器和红外线 CMOS 摄影机所构成的3D结构光深度感应器。深度感应器深度感应器RGB彩色摄影机KinectKinect编程框架编程框架The NUI API is the core of the Kinect for Windows API.It supports fundamental image and device management features,including the following:Access to the Kinect sensors that are conn
2、ected to the computer.Access to image and depth data streams from the Kinect image sensors.Delivery of a processed version of image and depth data to support skeletal tracking.C+:Include C#:更加简单.在前面说过,kinect有三个流来和我们的应用程序进行交互.Image StreamDepth StreamAudio Stream而我们平常看到的骨骼框架也是基于图片和深度信息进行计算得到的.在kinect中
3、,有两种方式能获得这些数据.1.等待模式 就是While(1)ImageStream.GetNextFrame();2.事件模式 通过监听event来调用event handler来处理.在我们的程序中,初始化完毕了就3个event来处理 视频流 _Kinect.VideoStream.Open(ImageStreamType.Video,2,ImageResolution.Resolution640 x480,ImageType.Color);_Kinect.VideoFrameReady+=new EventHandler(nui_colorFrameReady);数据格式:1.RGB(格
4、式 2.YUV(这个最高只能15fps)深度流:深度流:深度流格式:Frame size of 640480 pixels Frame size of 320240 pixels Frame size of 8060 pixels 深度流每个数据大小为16位,对于设置了depth only来说,低12位代表了距离,剩下4位没有用对于设置了depth and player index来说,低三位代表了player index,高13位代表了距离.值为0 代表位置没有物体获取深度信息:_Kinect.DepthStream.Open(ImageStreamType.Depth,2,ImageRes
5、olution.Resolution320 x240,ImageType.DepthAndPlayerIndex);_Kinect.DepthFrameReady+=new EventHandler(nui_depthFrameReady);骨骼框架流Kinect最多能追踪48个点由于目前每个框架有20个点,所以最多能有2个玩家官方文档还提到了,在kinect内部,有两种追踪情况,第一种是active tracking还有一种是passive tracking.对于active tracking,我们可以接收到之前看到的那样的骨骼框架,对于passive tracking来说,只有一个点.对于每个点来说,其返回x,y,z三个值对于每帧骨骼框架来说,其包括了,JointsKinect DocumentKinect SamplesCODING4FUNhttp:/