Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

KinectV2 with ofxOpenCv and ofxKinectV2

$
0
0

@Guilherme_Santos wrote:

errortest

Hi. I’m trying to use ofxOpenCv and ofxKinectV2 together but I can’t even set the pixel information from the kinect to an ofxCvColorImage properly.

My code is super simple:

void ofApp::setup(){
kinect.open();
color.allocate(960, 540);
}

//--------------------------------------------------------------
void ofApp::update(){
kinect.update();
if (kinect.isFrameNew()) {
color.setFromPixels(kinect.getPixels());
}

}

//--------------------------------------------------------------
void ofApp::draw(){
color.draw(0, 0, 960, 540);
}

I should a result like an rgb from the camera, which is what I get when I use ofImage or ofTexture, but ofxCvColorImage results in this instead.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles