2013-10-10 27 views
3

的帮助下制作东西请参阅我编写了一些关于Kinect处理的程序。最近,我按照说明here与vPython中的Kinect一起工作。现在旧的Processing程序将不会运行。当我尝试运行它们时出现错误。一个抛出在处理和python中使用kinect

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)

回答

2

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