I need help with using Kinect v1 with Processing. When I ran Processing, an R6025 pure vital function call error occurred. I attached the images of the error message. Error message1: R6025 pure vital function call alert Error message2: error in console window
This is the detail of my equipment and software. Windows 10 laptop (40GB disk left) Kinect v1 for Windows Processing 4.2 SimpleOpenNI version 1.96 library in Processing
And this is the code which I used.
import SimpleOpenNI.*;
SimpleOpenNI kinect;
void setup() {
size(640,480);
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
kinect.enableRGB();
}
void draw() {
kinect.update();
image(kinect.depthImage(),0,0);
image(kinect.rgbImage(), 640,0);
}
Below are the methods I tried.
Based on your feedback in the comments above it seems to be an issue with OpenNI (when initialising the Kinect Driver).
It's great news it works with the Kinect for Windows SDK.
I recommend trying a Processing library that wraps the Kinect for Windows SDK such as Bryan Chung's Kinect4WidowsSDK library (via Contribution Manager):
(Hopefully the library example just work. This library relies on the Kinect SDK to be preinstalled (the path to Kinect10.dll to be added to the PATH environment variable))