Multi hands in C# ?

68 views
Skip to first unread message

shamok

unread,
Jan 21, 2011, 1:13:36 PM1/21/11
to OpenNI
Hi,

I would like to know to what do i have to subscribe (event in
XnVNITE.net) to track a second hand in my program.

I try myPointControl.primaryPointCreate(..) ... works for the first
hand ... but no detection of a second one
and the same myPointControl.PointCreate(...)
and the same myHandGenerator.handCreate(..) only detecte one


I also look throughts the source of PointViewer.cpp but i could find
anything about Multi hands ?
the program is suppose to be tracking 2 hands but it doesn't work ...
i change the NITE.ini file also by

[HandTrackerManager]
;AllowMultipleHands=1
;TrackAdditionalHands=2

or

[HandTrackerManager]
;AllowMultipleHands=2
;TrackAdditionalHands=2

but nothing happens

any suggestions is good !
thanx

Mat.

blurg

unread,
Jan 21, 2011, 1:23:09 PM1/21/11
to openn...@googlegroups.com
In Nite.ini file ; are comments and 1 is for true, so your file should look like:

[HandTrackerManager]
AllowMultipleHands=1
TrackAdditionalHands=1

Hope it helps

shamok

unread,
Jan 21, 2011, 1:50:48 PM1/21/11
to OpenNI

ho shout !

i din't see the ';' on front the line :/

i was supposing that 1 was for true ... but i had to try :)

I'm gonna try the sample now .. thanx

Any help on how they do it ?
I din't find any thing on the sources of PointViewer sample.
( I look in the Main.cpp and the pointDrawer.cpp )

I do'nt find where the second and is manage or activeted !

thanx anyway

shamok

unread,
Jan 24, 2011, 3:50:26 AM1/24/11
to OpenNI
ok

i just find out that for C# user we have to put the directory and
files (Hands/NITE.ini)
in our Bin/(Debug/Release) directory to have second hand avaible with
the right option

so at least
[HandTrackerManager]
AllowMultipleHands=1
TrackAdditionalHands=2

now I have to manage correctly the id of the hands but it's working :)

i also find this on the forum
http://groups.google.com/group/openni-dev/browse_thread/thread/7cb51f1fa3240111/ba5c1b9f9333fe04?lnk=gst&q=multi+hands#ba5c1b9f9333fe04
but i din't try it yet

thanx
Reply all
Reply to author
Forward
0 new messages