Intland's free requirements, development and test management hosting.
This server hosts 100.000+ users on the cloud!
Tags: 

OpenKinect安装教程(也就是libfreenect)XP没有显示

英文指南

安装

libusb-win32
 
 

  • $(libusb)
DOS: setx /m libusb E:\projects\kinect\libusb-win32-bin-1.2.2.0
run inf-wizard.exe and Motor first, and Audio, Camera.

pthreads-win32
 
 

  • $(pthread)
DOS: setx /m pthreads E:\projects\kinect\pThreads\Pre-built.2\

解压

Glut
 
 

  • $(glut)
DOS: setx /m glut E:\projects\kinect\glut-3.7.6-bin
Mkdir E:\projects\kinect\glut-3.7.6-bin\GL copy glut.h to GL

OpenKinect
 
 

Unzip OpenKinect-libfreenect-2ea3ebb

用CMAKE做makefile、sln文件

Cmake
 
 

  • 在source code中填OpenKinect的目录;
  • 在binaries中填你希望产生vcxmu的目录;
  • 勾选Grouped, Advanced;
  • 更改VC的目录;
  • Build中选C_sync,Examples;
  • LibUSB中填Libusb-win32的目录$(libusb);
  • GLUT中填GLUT的目录$(glut);
  • Threads中填pthreads-win32的目录$(pthreads);
记住lib要指定文件,include指定目录
  • 点击configure,“Configuring done”表示有错,改到没有红色提示;“Generating done”成功。

编译vc

在/libfreenect/platform/windows的Readme看如何添加stdint.h
在vc的目录设置中添加
  • stdint.h
  • $(libusb)
  • $(pthread)
  • $(glut)

Change mode to release,
ALL_BUILD f7,

only build INSTALL to get following

1>------ 已启动生成: 项目: INSTALL, 配置: Release Win32 ------
1> 
1>正在执行生成后事件...
1>-- Install configuration: "Release"
1>-- Installing: C:/Program Files/libfreenect/lib/freenect.lib
1>-- Installing: C:/Program Files/libfreenect/lib/freenect.dll
1>-- Up-to-date: C:/Program Files/libfreenect/lib/freenect.lib
1>-- Installing: C:/Program Files/libfreenect/include/libfreenect/libfreenect.h
1>-- Installing: C:/Program Files/libfreenect/bin/glview.exe
1>-- Installing: C:/Program Files/libfreenect/bin/glpclview.exe
1>-- Installing: C:/Program Files/libfreenect/bin/tiltdemo.exe
1>-- Installing: C:/Program Files/libfreenect/lib/freenect_sync.lib
1>-- Installing: C:/Program Files/libfreenect/lib/freenect_sync.dll
1>-- Up-to-date: C:/Program Files/libfreenect/lib/freenect_sync.lib
1>-- Installing: C:/Program Files/libfreenect/include/libfreenect/libfreenect_sync.h
1>生成日志保存在“file://e:\projects\kinect\LibFreeNect_bin\INSTALL.dir\Release\BuildLog.htm”
1>INSTALL - 0 个错误,个警告
========== 生成: 成功1 个,失败0 个,最新9 个,跳过0 个==========
COPY freenect.dll, freenect_sync.dll, pThreadVC2.dll to c:\windows\system32 or current path.

run Tiltdemo without glut.dll, glview need glut.dll

运行glview

'w'-tilt up, 's'-level, 'x'-tilt down, '0'-'6'-select LED mode, 'f'-video format

注意
XP的效果不好,可以确定win7上面用libfreennect比较正常。 目前的libfreennect对xp支持不好。 在xp上面的深度图是黑白,而且glview不显示。
 
 

空白显示问题

  • 戴尔 Precision WorkStation 650 Mini Tower
    • 英特尔 Xeon(至强) 2.40GHz
    • 戴尔 0F1262 ( 英特尔 E7505 Host Controller - 82801DB/DBL(ICH4/ICH4-L) )
    • Windows XP 专业版 ( 32位 / SP3 / DirectX 9.0c )
    • ATI Radeon R200 QH ( 64 MB / ATI )
  • Haier
    • 英特尔 Celeron(赛扬) 550 @ 2.00GHz
    • 海尔 A650 ( 英特尔 PM965/GM965/GL960/GS965 - ICH8M 笔记本芯片组 )
    • Mobile Intel(R) 965 Express Chipset Family (Microsoft Corporation - WDDM 1.1) ( 384 MB / 广达 )

系统戴尔650海尔A650
Win7 no test [Empty displaying]NiViewer, NiSimpleViewer, Sample-TrackPad, glview. glpclview : only white depth map, without color.[Normal displaying] NiUserTracker, Sample-StickFigure,Sample-Players,Sample-PointViewer,Sample-SceneAnalysis(no checkboard)
XP glview, glpclview glview, glpclview

运行效果

xp下面kinect的深度“锥”(capture Kinect_libfreenect_glpclview xp)

你甚至可以从kinect的对面的视角看深度“锥”(capture Kinect_libfreenect_glpclview_back xp)

captured by 羽洋 Kinect libfreenect glpclview win7)

captured by 羽洋 Kinect libfreenect glview win7