简体   繁体   English

使用带有处理和python的kinect

[英]Using the kinect with processing and python

With the help of Making Things See I wrote a few programs on Processing for the Kinect. Make Things See的帮助下,我写了几个关于Kinect处理的程序。 More recently I followed the instructions here for working with the Kinect in vPython. 最近,我按照这里的说明在vPython中使用Kinect。 Now the old Processing programs won't run. 现在旧的Processing程序将无法运行。 I get errors when I try to run them. 我尝试运行它时遇到错误。 One throws 一抛

Null Point Exception: null array (referring to kinect.depthMap()) Null Point Exception: null array (指kinect.depthMap())

Another gives 另一个给出

`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.

I suspect that when I installed Kinect SDK it somehow messed up the drivers I installed for the Kinect to work with Processing. 我怀疑当我安装Kinect SDK时,它以某种方式弄乱了我为Kinect安装的驱动程序以使用Processing。 I reinstalled OpenNINITE. 我重新安装了OpenNINITE。 What must one do to toggle back and forth between using Processing and Python with the Kinect? 使用Processing和Python与Kinect之间来回切换必须做什么? (Processing version is 32-bit 2.0.1. Python is 2.7.5) (处理版本为32位2.0.1.Python为2.7.5)

I reinstalled NITE and then updated the SimpleOpenNi library in Processing. 我重新安装了NITE,然后在Processing中更新了SimpleOpenNi库。 Several of the commands have changed in the new version of the SimpleOpenNI library - eg there is no SKEL_PROFILE_ALL parameter - but once I modified my code in Processing, my programs worked and I can also use the kinect in Python. 新版本的SimpleOpenNI库中有一些命令发生了变化 - 例如没有SKEL_PROFILE_ALL参数 - 但是一旦我在Processing中修改了代码,我的程序就可以工作了,我也可以在Python中使用kinect。

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

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