资源描述:
《kinect sdk 1.5 face tracking --- 使用opencv显示后的超级简化版本》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、KinectSDK1.5FaceTracking--->使用opencv显示后的超级简化版本VS2010+opencv2.3.1+KinectSDK1.5驱动什么的,大家自己安装,木有基础的同学先学好基础先。代码是基于我之前更新的SDK1.5基础之上的,如果不太懂,先看之前的文章~http://blog.csdn.net/guoming0000/article/details/7607473免积分下载VS2010项目源码地址~//win32_KinectFaceTracking.cpp:定义控制台应用程
2、序的入口点。//#include"stdafx.h"//----------------------------------------------------#define_WINDOWS#includeHRESULTVisualizeFaceModel(IFTImage*pColorImg,IFTModel*pModel,FT_CAMERA_CONFIGconst*pCameraConfig,FLOATconst*pSUCoef,FLOATzoomFactor,POI
3、NTviewOffset,IFTResult*pAAMRlt,UINT32color);//----------------------------------------------------#include#include#include#include#include#include#include"opencv2opencv.hpp"otherstaffoftheCentre.Durin
4、gthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFe
5、derationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersandusingnamespacestd;usingnamespacecv;#include#include#include#
6、include#include"NuiApi.h"#defineCOLOR_WIDTH640#defineCOLOR_HIGHT480#defineDEPTH_WIDTH320#defineDEPTH_HIGHT240#defineSKELETON_WIDTH640#defineSKELETON_HIGHT480#defineCHANNEL3BYTEbuf[DEPTH_WIDTH*DEPTH_HIGHT*CHANNEL];intdrawColor(HANDLEh);intdrawD
7、epth(HANDLEh);intdrawSkeleton();//---facetracking------------------------------------------BYTE*colorBuffer,*depthBuffer;IFTImage*pColorFrame;IFTImage*pDepthFrame;FT_VECTOR3Dm_hint3D[2];//------------------------------------------------------------------
8、-----------------HANDLEh1;HANDLEh3;HANDLEh5;HANDLEh2;HANDLEh4;otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorder