Simple OpenNI // kinect Question // Center of Mass + userlist
in
Contributed Library Questions
•
9 months ago
Hi there,
i have a question. i'm working with the kinect!
and i use shifmans detection mode called center of mass, but i it detects more than one user and i want that the kinect only works with one user, even if there a more of them in the room.
but if there is a better method than center of mass, please let me know :)
thank you a lot
markus
i have a question. i'm working with the kinect!
and i use shifmans detection mode called center of mass, but i it detects more than one user and i want that the kinect only works with one user, even if there a more of them in the room.
- ////////// KINECT CENTER OF MASS /////////////
- image(kinect.depthImage(), 0, 0, 320, 240);
- kinect.update();
- IntVector userList = new IntVector();
- kinect.getUsers(userList);
- for (int i=0; i<userList.size(); i++) {
- int userId = userList.get(i);
- PVector position = new PVector();
- kinect.getCoM(userId, position);
- kinect.convertRealWorldToProjective(position, position);
- }
- //////////////////////////////////
but if there is a better method than center of mass, please let me know :)
thank you a lot
markus
1