使用带有处理和python的kinect

时间:2013-10-10 00:22:01

标签: python kinect processing kinect-sdk openkinect

Make Things See 的帮助下,我写了几个关于Kinect处理的程序。最近,我按照here的说明在vPython中使用了Kinect。现在旧的Processing程序将无法运行。我尝试运行它时遇到错误。一抛

Null Point Exception: null array  (参考kinect.depthMap())

另一个给出了

`SimpleOpenNI Version 0.27

A fatal error has been detected by the Java Runtime Environment:

 EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x60051f35, pid=6924, tid=5692

 JRE version: 6.0_37-b06
 Java VM: Java HotSpot(TM) Client VM (20.12-b01 mixed mode windows-x86 )
 Problematic frame:
 C  [OpenNI.dll+0x11f35]

 An error report file with more information is saved as:
 C:\Program Files (x86)\processing-2.0.1\hs_err_pid6924.log

 If you would like to submit a bug report, please visit:
   http://java.sun.com/webapps/bugreport/crash.jsp
 The crash happened outside the Java Virtual Machine in native code.
 See problematic frame for where to report the bug.

Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.

我怀疑当我安装Kinect SDK时,它以某种方式弄乱了我为Kinect安装的驱动程序以使用Processing。我重新安装了OpenNINITE。使用Processing和Python与Kinect之间来回切换必须做什么? (处理版本为32位2.0.1.Python为2.7.5)

1 个答案:

答案 0 :(得分:2)

我重新安装了NITE,然后在Processing中更新了SimpleOpenNi库。新版本的SimpleOpenNI库中的一些命令已经改变 - 例如没有SKEL_PROFILE_ALL参数 - 但是一旦我在Processing中修改了我的代码,我的程序就可以了,我也可以在Python中使用kinect。