jolarter / simple-openni

Automatically exported from code.google.com/p/simple-openni
0 stars 0 forks source link

getCoM() sometime returns 0,0,0 instead of real user's coords #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch the UserScene3D example
2. Move inside and outside the camera field to trigger user detection
3. See the rectangle showing the Center of Mass sometime going to the coord 
(0,0,0) instead of following the user. 

What is the expected output? What do you see instead?
As the user is well detected, the CoM should be always correct.

What version of the product are you using? On what operating system?
Latest unstable OpenNI, NITE and simple-openni 0.1.8, tested on Win7 x32 & x64

Please provide any additional information below
 - I don't know if it comes from the simple-openni lib or if it is a problem that also occurs when directly using the openni framework.

 - What is bothering is that the CoM calculation keeps being invalid if a user goes off the field and comes back again few seconds later, because the kinect will recognize it as the same user.
A solution would be to set the ServerNoClientsTimeout (in the 
GlobalDefaultsKinect.ini) to a low value, so when someone leaves the field and 
comes again inside it's detected as a new user and then the server starts a new 
CoM calculation.
Of course, some scenarios would be better if a user's id could be kept even if 
the user is off the field for a certain amount of time.

Original issue reported on code.google.com by bkuperb...@gmail.com on 14 May 2011 at 11:49

GoogleCodeExporter commented 9 years ago
Hello, Im using SimpleOpenNI, I want to know, How to get the coordinates 
(X,Y,Z) from head, neck...??

Any example??

Thank you!!

Original comment by juanux on 3 Jun 2011 at 5:58

GoogleCodeExporter commented 9 years ago
Hi, this issue is not talking about that but the UserScene & UserScene3D 
examples show the way to retrieve the whole skeletal information from the 
kinect and how to show them. There's actually no better explanation that these 
files to understand how to use this feature.

In the future, please take care of posting your questions in the right place 
(questions are not issues, and questions about library usage for skeletal 
tracking are even less related to CoM calculation bugs.

Anyway, hope you'll find what you want in these file, if not i think you should 
contact directly the maintainer of the project.

Original comment by bkuperb...@gmail.com on 3 Jun 2011 at 10:43

GoogleCodeExporter commented 9 years ago
Where Can I ask about coordinates skeleton joints??

Original comment by juanux on 20 Jul 2011 at 10:51

GoogleCodeExporter commented 9 years ago
Sorry this is not the place to ask for this kind of things, please either open 
a new issue or search over the examples.
This issue is about a problem with the getCoM function not returning the right 
user's Center of Mass point.

Original comment by bkuperb...@gmail.com on 18 Aug 2011 at 9:05

GoogleCodeExporter commented 9 years ago
this is actually an issue with the demo code determining active users with 

SimpleOpenNI.getNumberOfUsers() 

which returns the number of active users,  not a list of which users are active 
, which can be non consecutive, 
the loop which draws the centre of mass doesn't account for this.

it is possible to manage your own list with the SimpleOenNI user events 
or to use SimpleOpenNI.getUsers() with a new IntVector Object

http://simple-openni.googlecode.com/svn/trunk/SimpleOpenNI/dist/all/SimpleOpenNI
/documentation/SimpleOpenNI/ContextWrapper.html#getUsers(SimpleOpenNI.IntVector)

Original comment by nimi...@gmail.com on 5 Jan 2012 at 4:18