@Aditya wrote:
Hello, I have created a basic kinect program. But display is not coming. I am new to kinect v2.
Please find the below program and please help me to resolve this error.
I am using Xbox one kinect on windows 10 64 bit.void ofApp::setup() {
- kinect.setRegistration(true);*
- kinect.init(true); *
- kinect.enableDepthNearValueWhite(true);*
- kinect.open();*
}void ofApp::update() {
- ofBackground(100, 100, 100);*
- kinect.update();*
- }*
void ofApp::draw()
{
kinect.drawDepth(10, 10, 400, 300);*
}
void ofApp::exit() {
kinect.close();*
}
-----ofapp,h
class ofApp : public ofBaseApp {
public:void setup();*
void update();*
void draw();*
void exit();*
ofxKinect kinect;*
};Below is the screen shot what output its showing:
Posts: 1
Participants: 1