简体   繁体   English

Kinect v2示例代码具有未定义的C ++头

[英]Kinect v2 sample code has undefined C++ headers

I have installed version 2 of Kinect that comes with an integrated developer's toolkit. 我已经安装了Kinect的版本2,该版本带有集成的开发人员工具包。 Problem is that when I load the sample face tracking project (Face Basics D2D), a majority of C++'s own headers like windows.h, string library, strsafe etc come out to be undefined (although all of Kinect's own headers and libraries appear OK). 问题是,当我加载样本面部跟踪项目(Face Basics D2D)时,大多数C ++自己的标头(如windows.h,字符串库,strsafe等)都未定义(尽管所有Kinect自己的标头和库看起来都不错) 。 Can you tell me exactly how I am supposed to run that code? 您能确切告诉我如何运行该代码吗? What are the steps? 步骤是什么?

I would be really grateful for your help. 我将非常感谢您的帮助。

Thanks in advance. 提前致谢。

PS if i write a program myself, then those headers appear defined- completely normal. PS:如果我自己编写程序,则这些标头显示为已定义-完全正常。

Okay, so I finally found the answer: Kinect v2 is ONLY compatible with visual studio 2013. kinect v1 is compatible with 2010. Also if anyone wants to interface it with Matlab, you have to know that the support package available at http://www.mathworks.com/matlabcentral/fileexchange/40445-image-acquisition-toolbox-support-package-for-kinect-for-windows-runtime is only for v1 of kinect. 好的,所以我终于找到了答案:Kinect v2仅与Visual Studio 2013兼容。kinect v1与2010兼容。另外,如果有人希望将其与Matlab进行接口,则必须知道该支持包位于http:// www.mathworks.com/matlabcentral/fileexchange/40445-image-acquisition-toolbox-support-package-for-kinect-for-windows-runtime仅适用于kinect v1。 If you use it with v2, it will detect Kinect as an adaptor but will not recognize its depth and color sensor device IDs. 如果将其与v2一起使用,它将检测Kinect作为适配器,但无法识别其深度和颜色传感器设备ID。 v2 of Kinect is fairly new, and does not have its Matlab interface yet. Kinect的v2是相当新的,并且还没有其Matlab接口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM