rgbdemo / nestk

C++ Library for Kinect
http://nicolas.burrus.name/index.php/Research/KinectUseNestk
Other
78 stars 45 forks source link

nestk handpoint_tracking demo not working #8

Open myso opened 12 years ago

myso commented 12 years ago

Hi, I have a problem with the handpoint_tracking.cpp sample. It compiles fine, but does not work. The BodyDetector callback system doesn't work at all. It doesn't give me any output.

This line: cv::Point3f handpoint = body_event_listener.getLastHandPosInImage();

returns either zeros or nonsense, but most of the time zeros. It seems that triggerHandPoint() and triggerEvent() method is never called.

I added skeleton tracking and from the displayed skeleton I know that the user was detected and is being tracked. Is the MyBodyListener class OK? Since there is no documentation I don't know how to check for failures and as I mentioned before, there is no compilation error.

Thanks.

myso commented 12 years ago

If it it's useful I compiled nestk on 2 systems - Ubuntu 11.04 x86 and Ubuntu 11.04 x86_64. Various samples worked on both systems, but the hand tracking sample didn't work on any.